Documentation
¶
Index ¶
- Constants
- func NewAccepted() error
- func NewAlreadyReported() error
- func NewBadGateway() error
- func NewBadRequest(message ...string) error
- func NewConflict() error
- func NewContinue() error
- func NewCreated(data any) error
- func NewEarlyHints() error
- func NewError(body Body) error
- func NewExpectationFailed() error
- func NewFailedDependency() error
- func NewForbidden() error
- func NewFound() error
- func NewGatewayTimeout() error
- func NewGone() error
- func NewHTTPVersionNotSupported() error
- func NewIMUsed() error
- func NewInsufficientStorage() error
- func NewInternalServerError() error
- func NewLengthRequired() error
- func NewLocked() error
- func NewLoopDetected() error
- func NewMethodNotAllowed() error
- func NewMisdirectedRequest() error
- func NewMovedPermanently() error
- func NewMultiStatus() error
- func NewMultipleChoices() error
- func NewNetworkAuthenticationRequired() error
- func NewNoContent() error
- func NewNonAuthoritativeInformation() error
- func NewNotAcceptable() error
- func NewNotExtended() error
- func NewNotFound() error
- func NewNotImplemented() error
- func NewNotModified() error
- func NewOK(data any) error
- func NewPartialContent() error
- func NewPaymentRequired() error
- func NewPermanentRedirect() error
- func NewPreconditionFailed() error
- func NewPreconditionRequired() error
- func NewProcessing() error
- func NewProxyAuthRequired() error
- func NewRequestEntityTooLarge() error
- func NewRequestHeaderFieldsTooLarge() error
- func NewRequestTimeout() error
- func NewRequestURITooLong() error
- func NewRequestedRangeNotSatisfiable() error
- func NewResetContent() error
- func NewSeeOther() error
- func NewServiceUnavailable() error
- func NewSwitchingProtocols() error
- func NewTeapot() error
- func NewTemporaryRedirect() error
- func NewTooEarly() error
- func NewTooManyRequests() error
- func NewUnauthorized() error
- func NewUnavailableForLegalReasons() error
- func NewUnprocessableEntity() error
- func NewUnsupportedMediaType() error
- func NewUpgradeRequired() error
- func NewUseProxy() error
- func NewVariantAlsoNegotiates() error
- func SetMessage(err interface{}, message string)
- type Accepted
- type AlreadyReported
- type BadGateway
- type BadRequest
- type Body
- type Conflict
- type Continue
- type Created
- type EarlyHints
- type Error
- type ExpectationFailed
- type FailedDependency
- type Forbidden
- type Found
- type GatewayTimeout
- type Gone
- type HTTPVersionNotSupported
- type IMUsed
- type InsufficientStorage
- type InternalServerError
- type LengthRequired
- type Locked
- type LoopDetected
- type MethodNotAllowed
- type MisdirectedRequest
- type MovedPermanently
- type MultiStatus
- type MultipleChoices
- type NetworkAuthenticationRequired
- type NoContent
- type NonAuthoritativeInformation
- type NotAcceptable
- type NotExtended
- type NotFound
- type NotImplemented
- type NotModified
- type OK
- type PartialContent
- type PaymentRequired
- type PermanentRedirect
- type PreconditionFailed
- type PreconditionRequired
- type Processing
- type ProxyAuthRequired
- type RequestEntityTooLarge
- type RequestHeaderFieldsTooLarge
- type RequestTimeout
- type RequestURITooLong
- type RequestedRangeNotSatisfiable
- type ResetContent
- type SeeOther
- type ServiceUnavailable
- type SwitchingProtocols
- type Teapot
- type TemporaryRedirect
- type TooEarly
- type TooManyRequests
- type Unauthorized
- type UnavailableForLegalReasons
- type UnprocessableEntity
- type UnsupportedMediaType
- type UpgradeRequired
- type UseProxy
- type VariantAlsoNegotiates
Constants ¶
View Source
const ( // Informational CodeContinue = "INF000" CodeSwitchingProtocols = "INF001" CodeProcessing = "INF002" CodeEarlyHints = "INF003" // Successful CodeOK = "SUC000" CodeCreated = "SUC001" CodeAccepted = "SUC002" CodeNonAuthoritativeInformation = "SUC003" CodeNoContent = "SUC004" CodeResetContent = "SUC005" CodePartialContent = "SUC006" CodeMultiStatus = "SUC007" CodeAlreadyReported = "SUC008" CodeIMUsed = "SUC009" // Redirection CodeMultipleChoices = "RED000" CodeMovedPermanently = "RED001" CodeFound = "RED002" CodeSeeOther = "RED003" CodeNotModified = "RED004" CodeUseProxy = "RED005" CodeTemporaryRedirect = "RED007" CodePermanentRedirect = "RED008" // Client error CodeBadRequest = "CLE000" CodePaymentRequired = "CLE002" CodeForbidden = "CLE003" CodeNotFound = "CLE004" CodeMethodNotAllowed = "CLE005" CodeNotAcceptable = "CLE006" CodeProxyAuthRequired = "CLE007" CodeRequestTimeout = "CLE008" CodeConflict = "CLE009" CodeGone = "CLE010" CodeLengthRequired = "CLE011" CodePreconditionFailed = "CLE012" CodeRequestEntityTooLarge = "CLE013" CodeRequestURITooLong = "CLE014" CodeUnsupportedMediaType = "CLE015" CodeRequestedRangeNotSatisfiable = "CLE016" CodeExpectationFailed = "CLE017" CodeTeapot = "CLE018" CodeMisdirectedRequest = "CLE019" CodeUnprocessableEntity = "CLE020" CodeLocked = "CLE021" CodeFailedDependency = "CLE022" CodeTooEarly = "CLE023" CodeUpgradeRequired = "CLE024" CodePreconditionRequired = "CLE025" CodeTooManyRequests = "CLE026" CodeRequestHeaderFieldsTooLarge = "CLE027" // Server error CodeInternalServerError = "SVR000" CodeNotImplemented = "SVR001" CodeBadGateway = "SVR002" CodeGatewayTimeout = "SVR004" CodeHTTPVersionNotSupported = "SVR005" CodeVariantAlsoNegotiates = "SVR006" CodeInsufficientStorage = "SVR007" CodeLoopDetected = "SVR008" CodeNotExtended = "SVR009" CodeNetworkAuthenticationRequired = "SVR010" )
Variables ¶
This section is empty.
Functions ¶
func NewAccepted ¶
func NewAccepted() error
func NewAlreadyReported ¶
func NewAlreadyReported() error
func NewBadGateway ¶
func NewBadGateway() error
func NewBadRequest ¶
func NewConflict ¶
func NewConflict() error
func NewContinue ¶
func NewContinue() error
func NewCreated ¶
func NewEarlyHints ¶
func NewEarlyHints() error
func NewExpectationFailed ¶
func NewExpectationFailed() error
func NewFailedDependency ¶
func NewFailedDependency() error
func NewForbidden ¶
func NewForbidden() error
func NewGatewayTimeout ¶
func NewGatewayTimeout() error
func NewHTTPVersionNotSupported ¶
func NewHTTPVersionNotSupported() error
func NewInsufficientStorage ¶
func NewInsufficientStorage() error
func NewInternalServerError ¶
func NewInternalServerError() error
func NewLengthRequired ¶
func NewLengthRequired() error
func NewLoopDetected ¶
func NewLoopDetected() error
func NewMethodNotAllowed ¶
func NewMethodNotAllowed() error
func NewMisdirectedRequest ¶
func NewMisdirectedRequest() error
func NewMovedPermanently ¶
func NewMovedPermanently() error
func NewMultiStatus ¶
func NewMultiStatus() error
func NewMultipleChoices ¶
func NewMultipleChoices() error
func NewNetworkAuthenticationRequired ¶
func NewNetworkAuthenticationRequired() error
func NewNoContent ¶
func NewNoContent() error
func NewNonAuthoritativeInformation ¶
func NewNonAuthoritativeInformation() error
func NewNotAcceptable ¶
func NewNotAcceptable() error
func NewNotExtended ¶
func NewNotExtended() error
func NewNotFound ¶
func NewNotFound() error
func NewNotImplemented ¶
func NewNotImplemented() error
func NewNotModified ¶
func NewNotModified() error
func NewPartialContent ¶
func NewPartialContent() error
func NewPaymentRequired ¶
func NewPaymentRequired() error
func NewPermanentRedirect ¶
func NewPermanentRedirect() error
func NewPreconditionFailed ¶
func NewPreconditionFailed() error
func NewPreconditionRequired ¶
func NewPreconditionRequired() error
func NewProcessing ¶
func NewProcessing() error
func NewProxyAuthRequired ¶
func NewProxyAuthRequired() error
func NewRequestEntityTooLarge ¶
func NewRequestEntityTooLarge() error
func NewRequestHeaderFieldsTooLarge ¶
func NewRequestHeaderFieldsTooLarge() error
func NewRequestTimeout ¶
func NewRequestTimeout() error
func NewRequestURITooLong ¶
func NewRequestURITooLong() error
func NewRequestedRangeNotSatisfiable ¶
func NewRequestedRangeNotSatisfiable() error
func NewResetContent ¶
func NewResetContent() error
func NewSeeOther ¶
func NewSeeOther() error
func NewServiceUnavailable ¶
func NewServiceUnavailable() error
func NewSwitchingProtocols ¶
func NewSwitchingProtocols() error
func NewTemporaryRedirect ¶
func NewTemporaryRedirect() error
func NewTooEarly ¶
func NewTooEarly() error
func NewTooManyRequests ¶
func NewTooManyRequests() error
func NewUnauthorized ¶
func NewUnauthorized() error
func NewUnavailableForLegalReasons ¶
func NewUnavailableForLegalReasons() error
func NewUnprocessableEntity ¶
func NewUnprocessableEntity() error
func NewUnsupportedMediaType ¶
func NewUnsupportedMediaType() error
func NewUpgradeRequired ¶
func NewUpgradeRequired() error
func NewUseProxy ¶
func NewUseProxy() error
func NewVariantAlsoNegotiates ¶
func NewVariantAlsoNegotiates() error
func SetMessage ¶
func SetMessage(err interface{}, message string)
Types ¶
type AlreadyReported ¶
type AlreadyReported struct {
Body
}
type BadGateway ¶
type BadGateway struct {
Body
}
type BadRequest ¶
type BadRequest struct {
Body
}
type Body ¶
type EarlyHints ¶
type EarlyHints struct {
Body
}
type ExpectationFailed ¶
type ExpectationFailed struct {
Body
}
func (*ExpectationFailed) Error ¶
func (a *ExpectationFailed) Error() string
Error implements error.
type FailedDependency ¶
type FailedDependency struct {
Body
}
type GatewayTimeout ¶
type GatewayTimeout struct {
Body
}
type HTTPVersionNotSupported ¶
type HTTPVersionNotSupported struct {
Body
}
func (*HTTPVersionNotSupported) Error ¶
func (a *HTTPVersionNotSupported) Error() string
Error implements error.
type InsufficientStorage ¶
type InsufficientStorage struct {
Body
}
func (*InsufficientStorage) Error ¶
func (a *InsufficientStorage) Error() string
Error implements error.
type InternalServerError ¶
type InternalServerError struct {
Body
}
func (*InternalServerError) Error ¶
func (a *InternalServerError) Error() string
Error implements error.
type LengthRequired ¶
type LengthRequired struct {
Body
}
type LoopDetected ¶
type LoopDetected struct {
Body
}
type MethodNotAllowed ¶
type MethodNotAllowed struct {
Body
}
type MisdirectedRequest ¶
type MisdirectedRequest struct {
Body
}
func (*MisdirectedRequest) Error ¶
func (a *MisdirectedRequest) Error() string
Error implements error.
type MovedPermanently ¶
type MovedPermanently struct {
Body
}
type MultiStatus ¶
type MultiStatus struct {
Body
}
type MultipleChoices ¶
type MultipleChoices struct {
Body
}
type NetworkAuthenticationRequired ¶
type NetworkAuthenticationRequired struct {
Body
}
func (*NetworkAuthenticationRequired) Error ¶
func (a *NetworkAuthenticationRequired) Error() string
Error implements error.
type NonAuthoritativeInformation ¶
type NonAuthoritativeInformation struct {
Body
}
func (*NonAuthoritativeInformation) Error ¶
func (n *NonAuthoritativeInformation) Error() string
Error implements error.
type NotAcceptable ¶
type NotAcceptable struct {
Body
}
type NotExtended ¶
type NotExtended struct {
Body
}
type NotImplemented ¶
type NotImplemented struct {
Body
}
type NotModified ¶
type NotModified struct {
Body
}
type PartialContent ¶
type PartialContent struct {
Body
}
type PaymentRequired ¶
type PaymentRequired struct {
Body
}
type PermanentRedirect ¶
type PermanentRedirect struct {
Body
}
func (*PermanentRedirect) Error ¶
func (p *PermanentRedirect) Error() string
Error implements error.
type PreconditionFailed ¶
type PreconditionFailed struct {
Body
}
func (*PreconditionFailed) Error ¶
func (a *PreconditionFailed) Error() string
Error implements error.
type PreconditionRequired ¶
type PreconditionRequired struct {
Body
}
func (*PreconditionRequired) Error ¶
func (a *PreconditionRequired) Error() string
Error implements error.
type Processing ¶
type Processing struct {
Body
}
type ProxyAuthRequired ¶
type ProxyAuthRequired struct {
Body
}
func (*ProxyAuthRequired) Error ¶
func (p *ProxyAuthRequired) Error() string
Error implements error.
type RequestEntityTooLarge ¶
type RequestEntityTooLarge struct {
Body
}
func (*RequestEntityTooLarge) Error ¶
func (a *RequestEntityTooLarge) Error() string
Error implements error.
type RequestHeaderFieldsTooLarge ¶
type RequestHeaderFieldsTooLarge struct {
Body
}
func (*RequestHeaderFieldsTooLarge) Error ¶
func (a *RequestHeaderFieldsTooLarge) Error() string
Error implements error.
type RequestTimeout ¶
type RequestTimeout struct {
Body
}
type RequestURITooLong ¶
type RequestURITooLong struct {
Body
}
func (*RequestURITooLong) Error ¶
func (a *RequestURITooLong) Error() string
Error implements error.
type RequestedRangeNotSatisfiable ¶
type RequestedRangeNotSatisfiable struct {
Body
}
func (*RequestedRangeNotSatisfiable) Error ¶
func (a *RequestedRangeNotSatisfiable) Error() string
Error implements error.
type ResetContent ¶
type ResetContent struct {
Body
}
type ServiceUnavailable ¶
type ServiceUnavailable struct {
}func (*ServiceUnavailable) Error ¶
func (a *ServiceUnavailable) Error() string
Error implements error.
type SwitchingProtocols ¶
type SwitchingProtocols struct {
Body
}
func (*SwitchingProtocols) Error ¶
func (s *SwitchingProtocols) Error() string
Error implements error.
type TemporaryRedirect ¶
type TemporaryRedirect struct {
Body
}
func (*TemporaryRedirect) Error ¶
func (t *TemporaryRedirect) Error() string
Error implements error.
type TooManyRequests ¶
type TooManyRequests struct {
Body
}
type Unauthorized ¶
type Unauthorized struct {
}func (*Unauthorized) Error ¶
func (e *Unauthorized) Error() string
type UnavailableForLegalReasons ¶
type UnavailableForLegalReasons struct {
}func (*UnavailableForLegalReasons) Error ¶
func (a *UnavailableForLegalReasons) Error() string
Error implements error.
type UnprocessableEntity ¶
type UnprocessableEntity struct {
Body
}
func (*UnprocessableEntity) Error ¶
func (a *UnprocessableEntity) Error() string
Error implements error.
type UnsupportedMediaType ¶
type UnsupportedMediaType struct {
Body
}
func (*UnsupportedMediaType) Error ¶
func (a *UnsupportedMediaType) Error() string
Error implements error.
type UpgradeRequired ¶
type UpgradeRequired struct {
Body
}
type VariantAlsoNegotiates ¶
type VariantAlsoNegotiates struct {
Body
}
func (*VariantAlsoNegotiates) Error ¶
func (a *VariantAlsoNegotiates) Error() string
Error implements error.
Click to show internal directories.
Click to hide internal directories.