package
0.0.0-20240609141254-1efccbd6d3f9
Repository: https://github.com/conalli/bookshelf-backend.git
Documentation: pkg.go.dev
# Functions
APIErrorResponse encodes the response with an APIErr.
NewAPIError returns a new APIError with given arguments.
NewBadRequestError returns a bad request APIError with given arguments.
NewInternalServerError returns an internal server error APIError.
NewJWTClaimsError returns a wrong credentials APIError with given arguments.
NewJWTTokenError returns a wrong credentials APIError with given arguments.
NewUnauthorizedError returns a wrong credentials APIError with given arguments.
NewWrongCredentialsError returns a wrong credentials APIError with given arguments.
# Variables
ErrBadQueryParams represents an HTTP bad query params error.
ErrBadRequest represents an HTTP bad request error.
ErrForbidden represents an HTTP forbidden error.
ErrInternalServerError represents an HTTP internal server error.
ErrInvalidJWTClaims represents an HTTP invalid jwt claims error.
ErrInvalidJWTToken represents an HTTP invalid jwt token error.
ErrNotFound represents an HTTP not found error.
ErrPermissionDenied represents an HTTP permission denied error.
ErrRequestTimeoutError represents an HTTP request timeout error.
ErrUnauthorized represents an HTTP unauthorized error.
ErrWrongCredentials represents an HTTP wrong credentials error.
# Interfaces
APIErr represents the methods needed to return an APIErr.