OpenVeo server API for plugins

API Docs for: 7.0.0
Show:

http-errors

Module: controllers

static

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;

Properties

ADD_ENTITIES_ERROR

Syntax

ADD_ENTITIES_ERROR

Object final

Summary

A server error occurring when adding entities.

Default: 3

ADD_ENTITIES_MISSING_PARAMETERS

Syntax

ADD_ENTITIES_MISSING_PARAMETERS

Object final

Summary

A wrong parameters error occurring when a parameter is missing while adding entities.

Default: 770

ADD_ENTITIES_WRONG_PARAMETERS

Syntax

ADD_ENTITIES_WRONG_PARAMETERS

Object final

Summary

Adding entities failed, wrong parameters.

Default: 774

GET_ENTITIES_ERROR

Syntax

GET_ENTITIES_ERROR

Object final

Summary

A server error occurring when getting a list of entities.

Default: 0

GET_ENTITIES_WRONG_PARAMETERS

Syntax

GET_ENTITIES_WRONG_PARAMETERS

Object final

Summary

Getting the list of entities failed, wrong parameters.

Default: 772

GET_ENTITY_ERROR

Syntax

GET_ENTITY_ERROR

Object final

Summary

A server error occurring when getting an entity.

Default: 1

GET_ENTITY_FORBIDDEN

Syntax

GET_ENTITY_FORBIDDEN

Object final

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

GET_ENTITY_MISSING_PARAMETERS

Object final

Summary

A wrong parameters error occurring when a parameter is missing while getting an entity.

Default: 768

GET_ENTITY_NOT_FOUND

Syntax

GET_ENTITY_NOT_FOUND

Object final

Summary

A not found error occurring when an entity couldn't be found.

Default: 256

GET_ENTITY_WRONG_PARAMETERS

Syntax

GET_ENTITY_WRONG_PARAMETERS

Object final

Summary

Getting an entity failed, wrong parameters.

Default: 773

REMOVE_ENTITIES_ERROR

Syntax

REMOVE_ENTITIES_ERROR

Object final

Summary

A server error occurring when removing an entity.

Default: 4

REMOVE_ENTITIES_FORBIDDEN

Syntax

REMOVE_ENTITIES_FORBIDDEN

Object final

Summary

An authentication error occurring when the connected user doesn't have enough privileges to remove entities.

Default: 512

REMOVE_ENTITIES_MISSING_PARAMETERS

Syntax

REMOVE_ENTITIES_MISSING_PARAMETERS

Object final

Summary

A wrong parameters error occurring when a parameter is missing while removing entities.

Default: 771

UPDATE_ENTITY_ERROR

Syntax

UPDATE_ENTITY_ERROR

Object final

Summary

A server error occurring when updating an entity.

Default: 2

UPDATE_ENTITY_FORBIDDEN

Syntax

UPDATE_ENTITY_FORBIDDEN

Object final

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

UPDATE_ENTITY_GET_ONE_ERROR

Object final

Summary

Updating entity failed when getting the entity.

Default: 5

UPDATE_ENTITY_MISSING_PARAMETERS

Syntax

UPDATE_ENTITY_MISSING_PARAMETERS

Object final

Summary

A wrong parameters error occurring when a parameter is missing while updating an entity.

Default: 769

UPDATE_ENTITY_NOT_FOUND_ERROR

Syntax

UPDATE_ENTITY_NOT_FOUND_ERROR

Object final

Summary

Entity was not found when trying to update it.

Default: 257

UPDATE_ENTITY_WRONG_PARAMETERS

Syntax

UPDATE_ENTITY_WRONG_PARAMETERS

Object final

Summary

Updating entity failed, wrong parameters.

Default: 775