DefaultNotFoundHandler default exception handler
(ctx Context)
| 692 | |
| 693 | // DefaultNotFoundHandler default exception handler |
| 694 | func DefaultNotFoundHandler(ctx Context) { |
| 695 | ctx.Response().Header().Set(HeaderContentType, CharsetUTF8) |
| 696 | ctx.WriteStringC(http.StatusNotFound, http.StatusText(http.StatusNotFound)) |
| 697 | } |
| 698 | |
| 699 | // DefaultMethodNotAllowedHandler default exception handler |
| 700 | func DefaultMethodNotAllowedHandler(ctx Context) { |
nothing calls this directly
no test coverage detected