{"modulePath":"github.com/andy/caddy","version":"v0.10.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\nPackage errors implements an HTTP error handling middleware.\n\n## Types\n\n```go\ntype ErrorHandler struct {\n\tNext             httpserver.Handler\n\tGenericErrorPage string         // default error page filename\n\tErrorPages       map[int]string // map of status code to filename\n\tLog              *httpserver.Logger\n\tDebug            bool // if true, errors are written out to client rather than to a log\n}\n```\nErrorHandler handles HTTP errors (and 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/andy/caddy/caddyhttp/errors","name":"errors","synopsis":"Package errors implements an HTTP error handling middleware.","isRedistributable":true}
