Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERROR_UNAUTHORISED = &Error{message: "unauthorised", code: http.StatusUnauthorized} ERROR_DATABASE = &Error{message: "database operation failed", code: http.StatusFailedDependency} ERROR_PERMISSION_DENIED = &Error{message: "permission denied", code: http.StatusForbidden} ERROR_DATABASE_UNIQUE_KEY = &Error{message: "unique key failed", code: http.StatusBadRequest} ERROR_DATABASE_RECORD_NOT_FOUND = &Error{message: "record not found", code: http.StatusNotFound} ERROR_INTERNAL_SERVER_ERROR = &Error{message: "internal server error", code: http.StatusInternalServerError} )
Functions ¶
func BAD_REQUEST_ERROR ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.