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