package
0.6.0
Repository: https://github.com/saferwall/saferwall-api.git
Documentation: pkg.go.dev

# Functions

BadRequest creates a new error response representing a bad request (HTTP 400).
BuildErrorResponse builds an error response from an error.
Forbidden creates a new error response representing an authorization.
InternalServerError creates a new error response representing an internal server error (HTTP 500).
NotFound creates a new error response representing a resource-not-found error (HTTP 404).
TooLargeEntity creates a new error response representing a an entity larger than limits defined by server (HTTP 413).
Unauthorized creates a new error response representing an authentication/authorization failure (HTTP 401).
UnsupportedMediaType creates a new error response representing a an unsupported media type (HTTP 415).

# Structs

ErrorResponse is the response that represents an error.