(rw http.ResponseWriter, errorMessage string, args ...interface{})
| 50 | } |
| 51 | |
| 52 | func ForbiddenError(rw http.ResponseWriter, errorMessage string, args ...interface{}) { |
| 53 | rw.WriteHeader(http.StatusForbidden) |
| 54 | log.Printf("Forbidden: %s", fmt.Sprintf(errorMessage, args...)) |
| 55 | fmt.Fprintf(rw, "<h1>Forbidden</h1>") |
| 56 | } |
| 57 | |
| 58 | func RequestEntityTooLargeError(rw http.ResponseWriter) { |
| 59 | rw.WriteHeader(http.StatusRequestEntityTooLarge) |
nothing calls this directly
no test coverage detected