error

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2020 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL