HTTPError represents an error that occurred while handling a request.
| 105 | |
| 106 | // HTTPError represents an error that occurred while handling a request. |
| 107 | type HTTPError struct { |
| 108 | // Code is status code for HTTP response |
| 109 | Code int `json:"-"` |
| 110 | Message string `json:"message"` |
| 111 | err error |
| 112 | } |
| 113 | |
| 114 | // StatusCode returns status code for HTTP response |
| 115 | func (he *HTTPError) StatusCode() int { |
nothing calls this directly
no outgoing calls
no test coverage detected