Error is required to implement the `error` type interface.
()
| 48 | |
| 49 | // Error is required to implement the `error` type interface. |
| 50 | func (obj *httpError) Error() string { |
| 51 | return strconv.Itoa(obj.code) + " " + obj.msg |
| 52 | } |
| 53 | |
| 54 | // newHTTPError generates a new httpError based on a single status code. It gets |
| 55 | // the msg text from the http.StatusText method. |
no outgoing calls