InternalError returns an internal error response (500) with the given error.
(err error)
| 298 | |
| 299 | // InternalError returns an internal error response (500) with the given error. |
| 300 | func InternalError(err error) Response { |
| 301 | return &errorResponse{http.StatusInternalServerError, err.Error()} |
| 302 | } |
| 303 | |
| 304 | // NotFound returns a not found response (404) with the given error. |
| 305 | func NotFound(err error) Response { |
no test coverage detected
searching dependent graphs…