Error writes a JSON error response.
(w http.ResponseWriter, status int, message string)
| 16 | |
| 17 | // Error writes a JSON error response. |
| 18 | func Error(w http.ResponseWriter, status int, message string) { |
| 19 | JSON(w, status, map[string]string{"error": message}) |
| 20 | } |
no test coverage detected