Error response.
| 262 | |
| 263 | // Error response. |
| 264 | type errorResponse struct { |
| 265 | code int // Code to return in both the HTTP header and Code field of the response body. |
| 266 | msg string // Message to return in the Error field of the response body. |
| 267 | } |
| 268 | |
| 269 | // ErrorResponse returns an error response with the given code and msg. |
| 270 | func ErrorResponse(code int, msg string) Response { |
nothing calls this directly
no outgoing calls
no test coverage detected