customError

package
v0.0.0-...-33d0708 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest             = errors.New("Bad request")
	ErrWrongCredentials       = errors.New("Wrong Credentials")
	ErrNotFound               = errors.New("Not Found")
	ErrUnauthorized           = errors.New("Unauthorized")
	ErrForbidden              = errors.New("Forbidden")
	ErrPermissionDenied       = errors.New("Permission Denied")
	ErrExpiredCSRFError       = errors.New("Expired CSRF token")
	ErrWrongCSRFToken         = errors.New("Wrong CSRF token")
	ErrCSRFNotPresented       = errors.New("CSRF not presented")
	ErrNotRequiredFields      = errors.New("No such required fields")
	ErrBadQueryParams         = errors.New("Invalid query params")
	ErrInternalServerError    = errors.New("Internal Server Error")
	ErrRequestTimeoutError    = errors.New("Request Timeout")
	ErrExistsEmailError       = errors.New("User with given email already exists")
	ErrInvalidJWTToken        = errors.New("Invalid JWT token")
	ErrInvalidJWTClaims       = errors.New("Invalid JWT claims")
	ErrNotAllowedImageHeader  = errors.New("Not allowed image header")
	ErrContextCancel          = errors.New("Context cacnel")
	ErrDeadlineExceeded       = errors.New("Context exceed")
	ErrOTPCodeNotMatched      = errors.New("OTP code is wrong")
	ErrEmailNotActive         = errors.New("Your email isn't active")
	ErrPasswordCodeNotMatched = errors.New("Password is wrong")
	ErrEmailAlreadyActived    = errors.New("you already activate your email")
)

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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