NewBadRequest creates a HttpError with the given error and error code 400.
(err error)
| 25 | |
| 26 | // NewBadRequest creates a HttpError with the given error and error code 400. |
| 27 | func NewBadRequest(err error) *HTTPError { |
| 28 | return &HTTPError{http.StatusBadRequest, err} |
| 29 | } |
| 30 | |
| 31 | // NewBadRequestString returns a HttpError with the supplied message |
| 32 | // and error code 400. |
no outgoing calls
searching dependent graphs…