Documentation
¶
Index ¶
- Variables
- func BadGatewayWrap(err error) error
- func BadRequestWrap(err error) error
- func ConflictWrap(err error) error
- func ExpectationFailedWrap(err error) error
- func FailedDependencyWrap(err error) error
- func ForbiddenWrap(err error) error
- func GatewayTimeoutWrap(err error) error
- func GoneWrap(err error) error
- func HTTPVersionNotSupportedWrap(err error) error
- func InsufficientStorageWrap(err error) error
- func InternalServerErrorWrap(err error) error
- func LengthRequiredWrap(err error) error
- func LockedWrap(err error) error
- func LoopDetectedWrap(err error) error
- func MethodNotAllowedWrap(err error) error
- func MisdirectedRequestWrap(err error) error
- func NetworkAuthenticationRequiredWrap(err error) error
- func NotAcceptableWrap(err error) error
- func NotExtendedWrap(err error) error
- func NotFoundWrap(err error) error
- func NotImplementedWrap(err error) error
- func PaymentRequiredWrap(err error) error
- func PreconditionFailedWrap(err error) error
- func PreconditionRequiredWrap(err error) error
- func ProxyAuthRequiredWrap(err error) error
- func RequestEntityTooLargeWrap(err error) error
- func RequestHeaderFieldsTooLargeWrap(err error) error
- func RequestTimeoutWrap(err error) error
- func RequestURITooLongWrap(err error) error
- func RequestedRangeNotSatisfiableWrap(err error) error
- func Return(statusCode int) error
- func ServiceUnavailableWrap(err error) error
- func TeapotWrap(err error) error
- func TooEarlyWrap(err error) error
- func TooManyRequestsWrap(err error) error
- func UnauthorizedWrap(err error) error
- func UnavailableForLegalReasonsWrap(err error) error
- func UnprocessableEntityWrap(err error) error
- func UnsupportedMediaTypeWrap(err error) error
- func UpgradeRequiredWrap(err error) error
- func VariantAlsoNegotiatesWrap(err error) error
- type BadGateway
- type BadRequest
- type ClientError
- type Conflict
- type Error
- type ExpectationFailed
- type FailedDependency
- type Forbidden
- type GatewayTimeout
- type Gone
- type HTTPVersionNotSupported
- type InsufficientStorage
- type InternalServerError
- type LengthRequired
- type Locked
- type LoopDetected
- type MethodNotAllowed
- type MisdirectedRequest
- type NetworkAuthenticationRequired
- type NotAcceptable
- type NotExtended
- type NotFound
- type NotImplemented
- type PaymentRequired
- type PreconditionFailed
- type PreconditionRequired
- type ProxyAuthRequired
- type RequestEntityTooLarge
- type RequestHeaderFieldsTooLarge
- type RequestTimeout
- type RequestURITooLong
- type RequestedRangeNotSatisfiable
- type ServerError
- type ServiceUnavailable
- type Teapot
- type TooEarly
- type TooManyRequests
- type Unauthorized
- type UnavailableForLegalReasons
- type UnprocessableEntity
- type UnsupportedMediaType
- type UpgradeRequired
- type VariantAlsoNegotiates
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadGateway error = ServerErrorBadGateway
View Source
var ErrBadRequest error = ClientErrorBadRequest
View Source
var ErrConflict error = ClientErrorConflict
View Source
var ErrExpectationFailed error = ClientErrorExpectationFailed
View Source
var ErrFailedDependency error = ClientErrorFailedDependency
View Source
var ErrForbidden error = ClientErrorForbidden
View Source
var ErrGatewayTimeout error = ServerErrorGatewayTimeout
View Source
var ErrGone error = ClientErrorGone
View Source
var ErrHTTPVersionNotSupported error = ServerErrorHTTPVersionNotSupported
View Source
var ErrInsufficientStorage error = ServerErrorInsufficientStorage
View Source
var ErrInternalServerError error = ServerErrorInternalServerError
View Source
var ErrLengthRequired error = ClientErrorLengthRequired
View Source
var ErrLocked error = ClientErrorLocked
View Source
var ErrLoopDetected error = ServerErrorLoopDetected
View Source
var ErrMethodNotAllowed error = ClientErrorMethodNotAllowed
View Source
var ErrMisdirectedRequest error = ClientErrorMisdirectedRequest
View Source
var ErrNetworkAuthenticationRequired error = ServerErrorNetworkAuthenticationRequired
View Source
var ErrNotAcceptable error = ClientErrorNotAcceptable
View Source
var ErrNotExtended error = ServerErrorNotExtended
View Source
var ErrNotFound error = ClientErrorNotFound
View Source
var ErrNotImplemented error = ServerErrorNotImplemented
View Source
var ErrPaymentRequired error = ClientErrorPaymentRequired
View Source
var ErrPreconditionFailed error = ClientErrorPreconditionFailed
View Source
var ErrPreconditionRequired error = PreconditionRequiredWrap(nil)
View Source
var ErrProxyAuthRequired error = ClientErrorProxyAuthRequired
View Source
var ErrRequestEntityTooLarge error = ClientErrorRequestEntityTooLarge
View Source
var ErrRequestHeaderFieldsTooLarge error = ClientErrorRequestHeaderFieldsTooLarge
View Source
var ErrRequestTimeout error = ClientErrorRequestTimeout
View Source
var ErrRequestURITooLong error = ClientErrorRequestURITooLong
View Source
var ErrRequestedRangeNotSatisfiable error = ClientErrorRequestedRangeNotSatisfiable
View Source
var ErrTeapot error = ClientErrorTeapot
View Source
var ErrTooEarly error = ClientErrorTooEarly
View Source
var ErrTooManyRequests error = ClientErrorTooManyRequests
View Source
var ErrUnprocessableEntity error = ClientErrorUnprocessableEntity
View Source
var ErrUnsupportedMediaType error = ClientErrorUnsupportedMediaType
View Source
var ErrUpgradeRequired error = ClientErrorUpgradeRequired
View Source
var ErrVariantAlsoNegotiates error = ServerErrorVariantAlsoNegotiates
Functions ¶
func BadGatewayWrap ¶
func BadRequestWrap ¶
func ConflictWrap ¶
func ExpectationFailedWrap ¶
func FailedDependencyWrap ¶
func ForbiddenWrap ¶
func GatewayTimeoutWrap ¶
func InsufficientStorageWrap ¶
func InternalServerErrorWrap ¶
func LengthRequiredWrap ¶
func LockedWrap ¶
func LoopDetectedWrap ¶
func MethodNotAllowedWrap ¶
func MisdirectedRequestWrap ¶
func NotAcceptableWrap ¶
func NotExtendedWrap ¶
func NotFoundWrap ¶
func NotImplementedWrap ¶
func PaymentRequiredWrap ¶
func PreconditionFailedWrap ¶
func ProxyAuthRequiredWrap ¶
func RequestTimeoutWrap ¶
func RequestURITooLongWrap ¶
func ServiceUnavailableWrap ¶
func TeapotWrap ¶
func TooEarlyWrap ¶
func TooManyRequestsWrap ¶
func UnauthorizedWrap ¶
func UnprocessableEntityWrap ¶
func UpgradeRequiredWrap ¶
Types ¶
type BadGateway ¶
type BadGateway interface {
ServerError
BadGateway()
}
type BadRequest ¶
type BadRequest interface {
ClientError
BadRequest()
}
type ClientError ¶
type ClientError interface {
Error
ClientError()
}
var ClientErrorBadRequest ClientError = BadRequestWrap(nil).(BadRequest)
var ClientErrorConflict ClientError = ConflictWrap(nil).(Conflict)
var ClientErrorExpectationFailed ClientError = ExpectationFailedWrap(nil).(ExpectationFailed)
var ClientErrorFailedDependency ClientError = FailedDependencyWrap(nil).(FailedDependency)
var ClientErrorForbidden ClientError = ForbiddenWrap(nil).(Forbidden)
var ClientErrorGone ClientError = GoneWrap(nil).(Gone)
var ClientErrorLengthRequired ClientError = LengthRequiredWrap(nil).(LengthRequired)
var ClientErrorLocked ClientError = LockedWrap(nil).(Locked)
var ClientErrorMethodNotAllowed ClientError = MethodNotAllowedWrap(nil).(MethodNotAllowed)
var ClientErrorMisdirectedRequest ClientError = MisdirectedRequestWrap(nil).(MisdirectedRequest)
var ClientErrorNotAcceptable ClientError = NotAcceptableWrap(nil).(NotAcceptable)
var ClientErrorNotFound ClientError = NotFoundWrap(nil).(NotFound)
var ClientErrorPaymentRequired ClientError = PaymentRequiredWrap(nil).(PaymentRequired)
var ClientErrorPreconditionFailed ClientError = PreconditionFailedWrap(nil).(PreconditionFailed)
var ClientErrorProxyAuthRequired ClientError = ProxyAuthRequiredWrap(nil).(ProxyAuthRequired)
var ClientErrorRequestEntityTooLarge ClientError = RequestEntityTooLargeWrap(nil).(RequestEntityTooLarge)
var ClientErrorRequestHeaderFieldsTooLarge ClientError = RequestHeaderFieldsTooLargeWrap(nil).(RequestHeaderFieldsTooLarge)
var ClientErrorRequestTimeout ClientError = RequestTimeoutWrap(nil).(RequestTimeout)
var ClientErrorRequestURITooLong ClientError = RequestURITooLongWrap(nil).(RequestURITooLong)
var ClientErrorRequestedRangeNotSatisfiable ClientError = RequestedRangeNotSatisfiableWrap(nil).(RequestedRangeNotSatisfiable)
var ClientErrorTeapot ClientError = TeapotWrap(nil).(Teapot)
var ClientErrorTooEarly ClientError = TooEarlyWrap(nil).(TooEarly)
var ClientErrorTooManyRequests ClientError = TooManyRequestsWrap(nil).(TooManyRequests)
var ClientErrorUnprocessableEntity ClientError = UnprocessableEntityWrap(nil).(UnprocessableEntity)
var ClientErrorUnsupportedMediaType ClientError = UnsupportedMediaTypeWrap(nil).(UnsupportedMediaType)
var ClientErrorUpgradeRequired ClientError = UpgradeRequiredWrap(nil).(UpgradeRequired)
type Conflict ¶
type Conflict interface {
ClientError
Conflict()
}
type Error ¶
var ErrHTTPBadGateway Error = ServerErrorBadGateway
var ErrHTTPBadRequest Error = ClientErrorBadRequest
var ErrHTTPConflict Error = ClientErrorConflict
var ErrHTTPExpectationFailed Error = ClientErrorExpectationFailed
var ErrHTTPFailedDependency Error = ClientErrorFailedDependency
var ErrHTTPForbidden Error = ClientErrorForbidden
var ErrHTTPGatewayTimeout Error = ServerErrorGatewayTimeout
var ErrHTTPGone Error = ClientErrorGone
var ErrHTTPHTTPVersionNotSupported Error = ServerErrorHTTPVersionNotSupported
var ErrHTTPInsufficientStorage Error = ServerErrorInsufficientStorage
var ErrHTTPInternalServerError Error = ServerErrorInternalServerError
var ErrHTTPLengthRequired Error = ClientErrorLengthRequired
var ErrHTTPLocked Error = ClientErrorLocked
var ErrHTTPLoopDetected Error = ServerErrorLoopDetected
var ErrHTTPMethodNotAllowed Error = ClientErrorMethodNotAllowed
var ErrHTTPMisdirectedRequest Error = ClientErrorMisdirectedRequest
var ErrHTTPNetworkAuthenticationRequired Error = ServerErrorNetworkAuthenticationRequired
var ErrHTTPNotAcceptable Error = ClientErrorNotAcceptable
var ErrHTTPNotExtended Error = ServerErrorNotExtended
var ErrHTTPNotFound Error = ClientErrorNotFound
var ErrHTTPNotImplemented Error = ServerErrorNotImplemented
var ErrHTTPPaymentRequired Error = ClientErrorPaymentRequired
var ErrHTTPPreconditionFailed Error = ClientErrorPreconditionFailed
var ErrHTTPProxyAuthRequired Error = ClientErrorProxyAuthRequired
var ErrHTTPRequestEntityTooLarge Error = ClientErrorRequestEntityTooLarge
var ErrHTTPRequestHeaderFieldsTooLarge Error = ClientErrorRequestHeaderFieldsTooLarge
var ErrHTTPRequestTimeout Error = ClientErrorRequestTimeout
var ErrHTTPRequestURITooLong Error = ClientErrorRequestURITooLong
var ErrHTTPRequestedRangeNotSatisfiable Error = ClientErrorRequestedRangeNotSatisfiable
var ErrHTTPTeapot Error = ClientErrorTeapot
var ErrHTTPTooEarly Error = ClientErrorTooEarly
var ErrHTTPTooManyRequests Error = ClientErrorTooManyRequests
var ErrHTTPUnprocessableEntity Error = ClientErrorUnprocessableEntity
var ErrHTTPUnsupportedMediaType Error = ClientErrorUnsupportedMediaType
var ErrHTTPUpgradeRequired Error = ClientErrorUpgradeRequired
var ErrHTTPVariantAlsoNegotiates Error = ServerErrorVariantAlsoNegotiates
type ExpectationFailed ¶
type ExpectationFailed interface {
ClientError
ExpectationFailed()
}
type FailedDependency ¶
type FailedDependency interface {
ClientError
FailedDependency()
}
type Forbidden ¶
type Forbidden interface {
ClientError
Forbidden()
}
type GatewayTimeout ¶
type GatewayTimeout interface {
ServerError
GatewayTimeout()
}
type Gone ¶
type Gone interface {
ClientError
Gone()
}
type HTTPVersionNotSupported ¶
type HTTPVersionNotSupported interface {
ServerError
HTTPVersionNotSupported()
}
type InsufficientStorage ¶
type InsufficientStorage interface {
ServerError
InsufficientStorage()
}
type InternalServerError ¶
type InternalServerError interface {
ServerError
InternalServerError()
}
var ServerErrorInternalServerError InternalServerError = InternalServerErrorWrap(nil).(InternalServerError)
type LengthRequired ¶
type LengthRequired interface {
ClientError
LengthRequired()
}
type Locked ¶
type Locked interface {
ClientError
Locked()
}
type LoopDetected ¶
type LoopDetected interface {
ServerError
LoopDetected()
}
type MethodNotAllowed ¶
type MethodNotAllowed interface {
ClientError
MethodNotAllowed()
}
type MisdirectedRequest ¶
type MisdirectedRequest interface {
ClientError
MisdirectedRequest()
}
type NetworkAuthenticationRequired ¶
type NetworkAuthenticationRequired interface {
ServerError
NetworkAuthenticationRequired()
}
type NotAcceptable ¶
type NotAcceptable interface {
ClientError
NotAcceptable()
}
type NotExtended ¶
type NotExtended interface {
ServerError
NotExtended()
}
type NotFound ¶
type NotFound interface {
ClientError
NotFound()
}
type NotImplemented ¶
type NotImplemented interface {
ServerError
NotImplemented()
}
type PaymentRequired ¶
type PaymentRequired interface {
ClientError
PaymentRequired()
}
type PreconditionFailed ¶
type PreconditionFailed interface {
ClientError
PreconditionFailed()
}
type PreconditionRequired ¶
type PreconditionRequired interface {
ClientError
PreconditionRequired()
}
type ProxyAuthRequired ¶
type ProxyAuthRequired interface {
ClientError
ProxyAuthRequired()
}
type RequestEntityTooLarge ¶
type RequestEntityTooLarge interface {
ClientError
RequestEntityTooLarge()
}
type RequestHeaderFieldsTooLarge ¶
type RequestHeaderFieldsTooLarge interface {
ClientError
RequestHeaderFieldsTooLarge()
}
type RequestTimeout ¶
type RequestTimeout interface {
ClientError
RequestTimeout()
}
type RequestURITooLong ¶
type RequestURITooLong interface {
ClientError
RequestURITooLong()
}
type RequestedRangeNotSatisfiable ¶
type RequestedRangeNotSatisfiable interface {
ClientError
RequestedRangeNotSatisfiable()
}
type ServerError ¶
type ServerError interface {
Error
ServerError()
}
var ServerErrorBadGateway ServerError = BadGatewayWrap(nil).(BadGateway)
var ServerErrorGatewayTimeout ServerError = GatewayTimeoutWrap(nil).(GatewayTimeout)
var ServerErrorHTTPVersionNotSupported ServerError = HTTPVersionNotSupportedWrap(nil).(HTTPVersionNotSupported)
var ServerErrorInsufficientStorage ServerError = InsufficientStorageWrap(nil).(InsufficientStorage)
var ServerErrorLoopDetected ServerError = LoopDetectedWrap(nil).(LoopDetected)
var ServerErrorNetworkAuthenticationRequired ServerError = NetworkAuthenticationRequiredWrap(nil).(NetworkAuthenticationRequired)
var ServerErrorNotExtended ServerError = NotExtendedWrap(nil).(NotExtended)
var ServerErrorNotImplemented ServerError = NotImplementedWrap(nil).(NotImplemented)
var ServerErrorVariantAlsoNegotiates ServerError = VariantAlsoNegotiatesWrap(nil).(VariantAlsoNegotiates)
type ServiceUnavailable ¶
type ServiceUnavailable interface {
ServerError
}
type Teapot ¶
type Teapot interface {
ClientError
Teapot()
}
type TooEarly ¶
type TooEarly interface {
ClientError
TooEarly()
}
type TooManyRequests ¶
type TooManyRequests interface {
ClientError
TooManyRequests()
}
type Unauthorized ¶
type Unauthorized interface {
ClientError
}
type UnavailableForLegalReasons ¶
type UnavailableForLegalReasons interface {
ClientError
}
type UnprocessableEntity ¶
type UnprocessableEntity interface {
ClientError
UnprocessableEntity()
}
type UnsupportedMediaType ¶
type UnsupportedMediaType interface {
ClientError
UnsupportedMediaType()
}
type UpgradeRequired ¶
type UpgradeRequired interface {
ClientError
UpgradeRequired()
}
type VariantAlsoNegotiates ¶
type VariantAlsoNegotiates interface {
ServerError
VariantAlsoNegotiates()
}
Source Files
¶
- badgateway.go
- badrequest.go
- clienterror.go
- conflict.go
- error.go
- expectationfailed.go
- faileddependency.go
- forbidden.go
- gatewaytimeout.go
- gone.go
- httpversionnotsupported.go
- insufficientstorage.go
- internalservererror.go
- lengthrequired.go
- locked.go
- loopdetected.go
- methodnotallowed.go
- misdirectedrequest.go
- networkauthenticationrequired.go
- notacceptable.go
- notextended.go
- notfound.go
- notimplemented.go
- paymentrequired.go
- preconditionfailed.go
- preconditionrequired.go
- proxyauthrequired.go
- requestedrangenotsatisfiable.go
- requestentitytoolarge.go
- requestheaderfieldstoolarge.go
- requesttimeout.go
- requesturitoolong.go
- return.go
- servehttp.go
- servererror.go
- serviceunavailable.go
- teapot.go
- tooearly.go
- toomanyrequests.go
- unauthorized.go
- unavailableforlegalreasons.go
- unprocessableentity.go
- unsupportedmediatype.go
- upgraderequired.go
- variantalsonegotiates.go
Click to show internal directories.
Click to hide internal directories.