(rw http.ResponseWriter)
| 56 | } |
| 57 | |
| 58 | func RequestEntityTooLargeError(rw http.ResponseWriter) { |
| 59 | rw.WriteHeader(http.StatusRequestEntityTooLarge) |
| 60 | fmt.Fprintf(rw, "<h1>Request entity is too large</h1>") |
| 61 | } |
| 62 | |
| 63 | func ServeError(rw http.ResponseWriter, req *http.Request, err error) { |
| 64 | rw.WriteHeader(http.StatusInternalServerError) |
nothing calls this directly
no test coverage detected