Documentation ¶
Overview ¶
Package httputil defines possible errors in HTTP request
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInternalServerError is thrown when there is any internal error occurs ErrInternalServerError = errors.New("Internal server error") // ErrNotConnected will be thrown when there is not connection with database ErrNotConnected = errors.New("Database is not connected") // ErrNotFound will be thrown when item is not existed in table ErrNotFound = errors.New("Requested item is not found") // ErrConfict will be thrown when item is already exists in table ErrConfict = errors.New("Item exists") // ErrBadParams will be thrown when given request-body or params is not valid ErrBadParams = errors.New("Params is invalid") // ErrAccessDenied is thrown when request doesn't contain authorization ErrAccessDenied = errors.New("Access denied. Authorization is required") ErrUnauthorized = errors.New("Access is unauthorized") )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.