github.com/justinjmoses/evergreen@v0.0.0-20170530173719-1d50e381ff0d/rest/error.go (about)

     1  package rest
     2  
     3  // APIError implements the Error() interface
     4  type APIError struct {
     5  	StatusCode int    `json:"status"`
     6  	Message    string `json:"error"`
     7  }
     8  
     9  func (e APIError) Error() string {
    10  	return e.Message
    11  }