Errors
An error object looks like this:
{
"generic": "NOT_FOUND",
"field": "STREAM",
"error": "Stream not found"
}
// Generic errors
404 Not Found:
NOT_FOUND
: The requested resource was not found.
400 Bad Request:
PARAM_LENGTH
: Length of parameter out of bounds.MISSING
: Missing a required field.HASH_MATCH
: Hash doesn’t match.OVERFLOW
: Request body too big.
// Internal errors
500 Internal Server Error:
DB_CONNECT
: Database connection errors.DB_QUERY
: Database query errors.FS_CREATE
: Filesystem error while creating a file.FS_RENAME
: Filesystem error while renaming a file.FS_REMOVE
: Filesystem error while removing a file.FS_OPEN
: Filesystem error while opening a file.FS_WRITE
: Filesystem error while writing to a file.