errors

package
v0.0.0-...-f0d5876 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BadGateway

func BadGateway(msg string, err error) error

func BadRequest

func BadRequest(msg string, err error) error

func Conflict

func Conflict(msg string, err error) error

func ExpectationFailed

func ExpectationFailed(msg string, err error) error

func FailedDependency

func FailedDependency(msg string, err error) error

func Forbidden

func Forbidden(msg string, err error) error

func GatewayTimeout

func GatewayTimeout(msg string, err error) error

func Gone

func Gone(msg string, err error) error

func HTTPVersionNotSupported

func HTTPVersionNotSupported(msg string, err error) error

func InsufficientStorage

func InsufficientStorage(msg string, err error) error

func InternalServerError

func InternalServerError(msg string, err error) error

func LengthRequired

func LengthRequired(msg string, err error) error

func Locked

func Locked(msg string, err error) error

func LoopDetected

func LoopDetected(msg string, err error) error

func MethodNotAllowed

func MethodNotAllowed(msg string, err error) error

func MisdirectedRequest

func MisdirectedRequest(msg string, err error) error

func NetworkAuthenticationRequired

func NetworkAuthenticationRequired(msg string, err error) error

func NotAcceptable

func NotAcceptable(msg string, err error) error

func NotExtended

func NotExtended(msg string, err error) error

func NotFound

func NotFound(msg string, err error) error

func NotImplemented

func NotImplemented(msg string, err error) error

func PaymentRequired

func PaymentRequired(msg string, err error) error

func PreconditionFailed

func PreconditionFailed(msg string, err error) error

func PreconditionRequired

func PreconditionRequired(msg string, err error) error

func ProxyAuthRequired

func ProxyAuthRequired(msg string, err error) error

func RequestEntityTooLarge

func RequestEntityTooLarge(msg string, err error) error

func RequestHeaderFieldsTooLarge

func RequestHeaderFieldsTooLarge(msg string, err error) error

func RequestTimeout

func RequestTimeout(msg string, err error) error

func RequestURITooLong

func RequestURITooLong(msg string, err error) error

func RequestedRangeNotSatisfiable

func RequestedRangeNotSatisfiable(msg string, err error) error

func ServiceUnavailable

func ServiceUnavailable(msg string, err error) error

func Teapot

func Teapot(msg string, err error) error

func TooEarly

func TooEarly(msg string, err error) error

func TooManyRequests

func TooManyRequests(msg string, err error) error

func Unauthorized

func Unauthorized(msg string, err error) error

func UnavailableForLegalReasons

func UnavailableForLegalReasons(msg string, err error) error

func UnprocessableEntity

func UnprocessableEntity(msg string, err error) error

func UnsupportedMediaType

func UnsupportedMediaType(msg string, err error) error

func UpgradeRequired

func UpgradeRequired(msg string, err error) error

func VariantAlsoNegotiates

func VariantAlsoNegotiates(msg string, err error) error

Types

type HTTPError

type HTTPError struct {
	StatusCode int    `json:"status"`
	Message    string `json:"message"`
	Err        error  `json:"error,omitempty"`
}

func (HTTPError) Error

func (e HTTPError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL