Documentation
¶
Overview ¶
Package httperror is a convenience package that defines error objects for each 4xx and 5xx HTTP status.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 4xx BadRequest = &Error{http.StatusBadRequest} PaymentRequired = &Error{http.StatusPaymentRequired} Forbidden = &Error{http.StatusForbidden} NotFound = &Error{http.StatusNotFound} MethodNotAllowed = &Error{http.StatusMethodNotAllowed} NotAcceptable = &Error{http.StatusNotAcceptable} ProxyAuthRequired = &Error{http.StatusProxyAuthRequired} RequestTimeout = &Error{http.StatusRequestTimeout} Conflict = &Error{http.StatusConflict} Gone = &Error{http.StatusGone} LengthRequired = &Error{http.StatusLengthRequired} PreconditionFailed = &Error{http.StatusPreconditionFailed} RequestEntityTooLarge = &Error{http.StatusRequestEntityTooLarge} RequestURITooLong = &Error{http.StatusRequestURITooLong} UnsupportedMediaType = &Error{http.StatusUnsupportedMediaType} RequestedRangeNotSatisfiable = &Error{http.StatusRequestedRangeNotSatisfiable} ExpectationFailed = &Error{http.StatusExpectationFailed} Teapot = &Error{http.StatusTeapot} MisdirectedRequest = &Error{http.StatusMisdirectedRequest} UnprocessableEntity = &Error{http.StatusUnprocessableEntity} Locked = &Error{http.StatusLocked} FailedDependency = &Error{http.StatusFailedDependency} TooEarly = &Error{http.StatusTooEarly} UpgradeRequired = &Error{http.StatusUpgradeRequired} PreconditionRequired = &Error{http.StatusPreconditionRequired} TooManyRequests = &Error{http.StatusTooManyRequests} RequestHeaderFieldsTooLarge = &Error{http.StatusRequestHeaderFieldsTooLarge} // 5xx InternalServerError = &Error{http.StatusInternalServerError} NotImplemented = &Error{http.StatusNotImplemented} BadGateway = &Error{http.StatusBadGateway} GatewayTimeout = &Error{http.StatusGatewayTimeout} HTTPVersionNotSupported = &Error{http.StatusHTTPVersionNotSupported} VariantAlsoNegotiates = &Error{http.StatusVariantAlsoNegotiates} InsufficientStorage = &Error{http.StatusInsufficientStorage} LoopDetected = &Error{http.StatusLoopDetected} NotExtended = &Error{http.StatusNotExtended} NetworkAuthenticationRequired = &Error{http.StatusNetworkAuthenticationRequired} )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.