package
0.0.0-20240730081840-b2c82e1192fb
Repository: https://github.com/joinself/restful-client.git
Documentation: pkg.go.dev
# Functions
BadRequest creates a new error response representing a bad request (HTTP 400).
Forbidden creates a new error response representing an authorization failure (HTTP 403).
InternalServerError creates a new error response representing an internal server error (HTTP 500).
InvalidInput creates a new error response representing a data validation error (HTTP 400).
NotFound creates a new error response representing a resource-not-found error (HTTP 404).
Unauthorized creates a new error response representing an authentication/authorization failure (HTTP 401).
# Structs
ErrorResponse is the response that represents an error.