()
| 57 | } |
| 58 | |
| 59 | func (e *HTTPError) Error() string { |
| 60 | return fmt.Sprintf("%s %s: %d %s: %s", e.Method, e.Path, e.StatusCode, http.StatusText(e.StatusCode), strings.TrimSpace(e.Body)) |
| 61 | } |
| 62 | |
| 63 | // ErrHTTPNotFound is the sentinel for "the resource you asked for doesn't |
| 64 | // exist". Match it via errors.Is on an *HTTPError. |
no outgoing calls