Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAccountEmptyAuthHeader = NewBadRequestError("Missing token in request header") ErrAccountInvalidAuthHeader = NewBadRequestError("Malformed token in request header") ErrInvalidToken = NewUnauthorizedError("The token is invalid") ErrTokenExpired = NewUnauthorizedError("The token has expired") )
Functions ¶
func NewBadRequestError ¶
func NewBadRequestError(message ...interface{}) *echo.HTTPError
NewBadRequestError creates a new error with http.StatusBadRequest
func NewUnauthorizedError ¶ added in v0.8.1
func NewUnauthorizedError(message ...interface{}) *echo.HTTPError
NewUnauthorizedError creates a new error with http.StatusUnauthorized
func NewValidationError ¶
func NewValidationError(message ...interface{}) *echo.HTTPError
NewValidationError creates a new error with http.StatusUnprocessableEntity
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.