banking-crud-api / models /error /error_model.go
lifedebugger's picture
Deploy files from GitHub repository
651b04e
raw
history blame contribute delete
931 Bytes
package http_error
import "errors"
var (
BAD_REQUEST_ERROR = errors.New("Invalid Request Format !")
INTERNAL_SERVER_ERROR = errors.New("Internal Server Error!")
UNAUTHORIZED = errors.New("Unauthorized, you don't have permission to access this service!")
DATA_NOT_FOUND = errors.New("There is not data with given credential / given parameter!")
TIMEOUT = errors.New("Server took to long respond!")
EXISTING_ACCOUNT = errors.New("There is existing account!")
INVALID_TOKEN = errors.New("Invalid Authentication Payload!")
DUPLICATE_DATA = errors.New("Duplicate data !")
ACCOUNT_NOT_FOUND = errors.New("There is no account with given credential!")
WRONG_PASSWORD = errors.New("Your password is wrong for given account credential, please recheck!")
INVALID_ACCOUNT_DIGITS = errors.New("Your account 3 digits is not found in account number data")
)