http-errors
Summary
The list of common HTTP errors with, for each error, its associated hexadecimal code and HTTP return code.
var HTTP_ERRORS = require('@openveo/api').controllers.httpErrors;
Item Index
Properties
- ADD_ENTITIES_ERROR
- ADD_ENTITIES_MISSING_PARAMETERS
- ADD_ENTITIES_WRONG_PARAMETERS
- GET_ENTITIES_ERROR
- GET_ENTITIES_WRONG_PARAMETERS
- GET_ENTITY_ERROR
- GET_ENTITY_FORBIDDEN
- GET_ENTITY_MISSING_PARAMETERS
- GET_ENTITY_NOT_FOUND
- GET_ENTITY_WRONG_PARAMETERS
- REMOVE_ENTITIES_ERROR
- REMOVE_ENTITIES_FORBIDDEN
- REMOVE_ENTITIES_MISSING_PARAMETERS
- UPDATE_ENTITY_ERROR
- UPDATE_ENTITY_FORBIDDEN
- UPDATE_ENTITY_GET_ONE_ERROR
- UPDATE_ENTITY_MISSING_PARAMETERS
- UPDATE_ENTITY_NOT_FOUND_ERROR
- UPDATE_ENTITY_WRONG_PARAMETERS
Properties
ADD_ENTITIES_ERROR
Syntax
Summary
A server error occurring when adding entities.
Default: 3
ADD_ENTITIES_MISSING_PARAMETERS
Syntax
Summary
A wrong parameters error occurring when a parameter is missing while adding entities.
Default: 770
ADD_ENTITIES_WRONG_PARAMETERS
Syntax
Summary
Adding entities failed, wrong parameters.
Default: 774
GET_ENTITIES_ERROR
Syntax
Summary
A server error occurring when getting a list of entities.
Default: 0
GET_ENTITIES_WRONG_PARAMETERS
Syntax
Summary
Getting the list of entities failed, wrong parameters.
Default: 772
GET_ENTITY_ERROR
Syntax
Summary
A server error occurring when getting an entity.
Default: 1
GET_ENTITY_FORBIDDEN
Syntax
Summary
An authentication error occurring when the connected user doesn't have enough privileges to get an entity.
Default: 513
GET_ENTITY_MISSING_PARAMETERS
Syntax
Summary
A wrong parameters error occurring when a parameter is missing while getting an entity.
Default: 768
GET_ENTITY_NOT_FOUND
Syntax
Summary
A not found error occurring when an entity couldn't be found.
Default: 256
GET_ENTITY_WRONG_PARAMETERS
Syntax
Summary
Getting an entity failed, wrong parameters.
Default: 773
REMOVE_ENTITIES_ERROR
Syntax
Summary
A server error occurring when removing an entity.
Default: 4
REMOVE_ENTITIES_FORBIDDEN
Syntax
Summary
An authentication error occurring when the connected user doesn't have enough privileges to remove entities.
Default: 512
REMOVE_ENTITIES_MISSING_PARAMETERS
Syntax
Summary
A wrong parameters error occurring when a parameter is missing while removing entities.
Default: 771
UPDATE_ENTITY_ERROR
Syntax
Summary
A server error occurring when updating an entity.
Default: 2
UPDATE_ENTITY_FORBIDDEN
Syntax
Summary
An authentication error occurring when the connected user doesn't have enough privileges to update an entity.
Default: 514
UPDATE_ENTITY_GET_ONE_ERROR
Syntax
Summary
Updating entity failed when getting the entity.
Default: 5
UPDATE_ENTITY_MISSING_PARAMETERS
Syntax
Summary
A wrong parameters error occurring when a parameter is missing while updating an entity.
Default: 769
UPDATE_ENTITY_NOT_FOUND_ERROR
Syntax
Summary
Entity was not found when trying to update it.
Default: 257
UPDATE_ENTITY_WRONG_PARAMETERS
Syntax
Summary
Updating entity failed, wrong parameters.
Default: 775