Documentation
¶
Index ¶
- func BadGateway(msg string) error
- func BadRequest(msg string) error
- func Conflict(msg string) error
- func EmptyRequestBody() error
- func Forbidden(action string) error
- func GatewayTimeout(msg string) error
- func MalformedPayload() error
- func NotFound(resource string) error
- func PasswordResetRequired() error
- func PluginLoadFailure(msg string) error
- func Unauthorized(msg string) error
- func UnknownParameter(param string) error
- func UnsupportedMediaType() error
- func ValidationError(msg string) error
- func ValidationTypeError(msg string) error
- type Error
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadGateway ¶ added in v0.0.33
BadGateway returns a 502 error with the given message.
func BadRequest ¶ added in v0.0.21
BadRequest returns a 400 error with the given message.
func EmptyRequestBody ¶
func EmptyRequestBody() error
func GatewayTimeout ¶ added in v0.0.33
GatewayTimeout returns a 504 error with the given message.
func MalformedPayload ¶
func MalformedPayload() error
func PasswordResetRequired ¶ added in v0.0.12
func PasswordResetRequired() error
PasswordResetRequired returns a 403 error indicating the user must reset their password before continuing.
func PluginLoadFailure ¶ added in v0.0.37
PluginLoadFailure returns a 422 error for a plugin that failed to load at runtime (e.g., malformed manifest, incompatible host version). The request itself was well-formed — the side effect failed.
func Unauthorized ¶
Unauthorized returns a 401 error with the given message.
func UnknownParameter ¶
func UnsupportedMediaType ¶
func UnsupportedMediaType() error
func ValidationError ¶
func ValidationTypeError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.