{"modulePath":"github.com/ChannelMeter/caddy","version":"v0.5.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\nPackage errors implements an HTTP error handling middleware.\n\n## Functions\n\n```go\nfunc New(c middleware.Controller) (middleware.Middleware, error)\n```\nNew instantiates a new instance of error-handling middleware.\n\n## Types\n\n```go\ntype ErrorHandler struct {\n\tNext       middleware.Handler\n\tErrorPages map[int]string // map of status code to filename\n\tLogFile    string\n\tLog        *log.Logger\n}\n```\nErrorHandler handles HTTP errors (or errors from other middleware).\n\n```go\nfunc (h ErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)\n```\n\n","path":"github.com/ChannelMeter/caddy/middleware/errors","name":"errors","synopsis":"Package errors implements an HTTP error handling middleware.","isRedistributable":true}
