'use strict';
/**
* @module controllers
*/
/**
* The list of HTTP errors with, for each error, its associated
* hexadecimal code and HTTP return code.
* HTTP errors are sent by controllers.
*
* @example
* var HTTP_ERRORS = process.requirePublish('app/server/controllers/httpErrors.js');
* console.log(HTTP_ERRORS.UNKNOWN_ERROR);
*
* @class HTTP_ERRORS
* @static
*/
var HTTP_ERRORS = {
// Server errors
/**
* Unidentified error.
*
* @property UNKNOWN_ERROR
* @type Object
* @final
* @default 0
*/
UNKNOWN_ERROR: {
code: 0x000,
httpCode: 500,
module: 'publish'
},
/**
* Getting a ready video failed.
*
* @property GET_VIDEO_READY_ERROR
* @type Object
* @final
* @default 1
*/
GET_VIDEO_READY_ERROR: {
code: 0x001,
httpCode: 500,
module: 'publish'
},
/**
* Publishing a video failed.
*
* @property PUBLISH_VIDEOS_ERROR
* @type Object
* @final
* @default 2
*/
PUBLISH_VIDEOS_ERROR: {
code: 0x002,
httpCode: 500,
module: 'publish'
},
/**
* Unpublishing a video failed.
*
* @property UNPUBLISH_VIDEOS_ERROR
* @type Object
* @final
* @default 3
*/
UNPUBLISH_VIDEOS_ERROR: {
code: 0x003,
httpCode: 500,
module: 'publish'
},
/**
* Getting Publish plugin configuration failed.
*
* @property GET_CONFIGURATION_ERROR
* @type Object
* @final
* @default 4
*/
GET_CONFIGURATION_ERROR: {
code: 0x004,
httpCode: 500,
module: 'publish'
},
/**
* Getting the list of custom properties failed.
*
* @property GET_PROPERTIES_ERROR
* @type Object
* @final
* @default 5
*/
GET_PROPERTIES_ERROR: {
code: 0x005,
httpCode: 500,
module: 'publish'
},
/**
* Getting the list of videos failed.
*
* @property GET_VIDEOS_ERROR
* @type Object
* @final
* @default 6
*/
GET_VIDEOS_ERROR: {
code: 0x006,
httpCode: 500,
module: 'publish'
},
/**
* Updating an entity statistics failed.
*
* @property STATISTICS_UPDATE_ERROR
* @type Object
* @final
* @default 7
*/
STATISTICS_UPDATE_ERROR: {
code: 0x007,
httpCode: 500,
module: 'publish',
message: 'Error updating statistics'
},
/**
* Saving medias settings failed.
*
* @property SAVE_MEDIAS_SETTINGS_ERROR
* @type Object
* @final
* @default 8
*/
SAVE_MEDIAS_SETTINGS_ERROR: {
code: 0x008,
httpCode: 500,
module: 'publish'
},
/**
* Attaching a file to a tag failed.
*
* @property UPDATE_TAG_UPLOAD_ERROR
* @type Object
* @final
* @default 9
*/
UPDATE_TAG_UPLOAD_ERROR: {
code: 0x009,
httpCode: 500,
module: 'publish'
},
/**
* Getting the list of groups, when adding a media, failed.
*
* @property ADD_MEDIA_GROUPS_ERROR
* @type Object
* @final
* @default 10
*/
ADD_MEDIA_GROUPS_ERROR: {
code: 0x00a,
httpCode: 500,
module: 'publish'
},
/**
* Getting the list of custom properties, when adding a media, failed.
*
* @property ADD_MEDIA_CUSTOM_PROPERTIES_ERROR
* @type Object
* @final
* @default 11
*/
ADD_MEDIA_CUSTOM_PROPERTIES_ERROR: {
code: 0x00b,
httpCode: 500,
module: 'publish'
},
/**
* Parsing multipart body, when adding a media, failed.
*
* @property ADD_MEDIA_PARSE_ERROR
* @type Object
* @default 12
* @final
*/
ADD_MEDIA_PARSE_ERROR: {
code: 0x00c,
httpCode: 500,
module: 'publish'
},
/**
* Checking that media does not already exists in database, when adding a media, failed.
*
* @property ADD_MEDIA_CHECK_DUPLICATE_ERROR
* @type Object
* @final
* @default 13
*/
ADD_MEDIA_CHECK_DUPLICATE_ERROR: {
code: 0x00d,
httpCode: 500,
module: 'publish'
},
/**
* Removing temporary media file, when adding a media, failed.
*
* @property ADD_MEDIA_REMOVE_FILE_ERROR
* @type Object
* @final
* @default 14
*/
ADD_MEDIA_REMOVE_FILE_ERROR: {
code: 0x00e,
httpCode: 500,
module: 'publish'
},
/**
* Getting a ready media failed, media is not ready.
*
* @property GET_VIDEO_READY_NOT_READY_ERROR
* @type Object
* @final
* @default 15
*/
GET_VIDEO_READY_NOT_READY_ERROR: {
code: 0x00f,
httpCode: 500,
module: 'publish'
},
/**
* Getting a ready media failed when getting video platform information.
*
* @property GET_VIDEO_READY_GET_INFO_ERROR
* @type Object
* @final
* @default 16
*/
GET_VIDEO_READY_GET_INFO_ERROR: {
code: 0x010,
httpCode: 500,
module: 'publish'
},
/**
* Updating a media failed when getting the media.
*
* @property UPDATE_MEDIA_GET_ONE_ERROR
* @type Object
* @final
* @default 17
*/
UPDATE_MEDIA_GET_ONE_ERROR: {
code: 0x011,
httpCode: 500,
module: 'publish'
},
/**
* Getting medias failed when getting custom properties.
*
* @property GET_VIDEOS_GET_PROPERTIES_ERROR
* @type Object
* @final
* @default 18
*/
GET_VIDEOS_GET_PROPERTIES_ERROR: {
code: 0x012,
httpCode: 500,
module: 'publish'
},
/**
* Publishing medias failed when getting medias.
*
* @property PUBLISH_VIDEOS_GET_VIDEOS_ERROR
* @type Object
* @final
* @default 19
*/
PUBLISH_VIDEOS_GET_VIDEOS_ERROR: {
code: 0x013,
httpCode: 500,
module: 'publish'
},
/**
* Unpublishing medias failed when getting medias.
*
* @property UNPUBLISH_VIDEOS_GET_VIDEOS_ERROR
* @type Object
* @final
* @default 20
*/
UNPUBLISH_VIDEOS_GET_VIDEOS_ERROR: {
code: 0x014,
httpCode: 500,
module: 'publish'
},
/**
* Updating tag failed when getting the media.
*
* @property UPDATE_TAG_GET_ONE_ERROR
* @type Object
* @final
* @default 21
*/
UPDATE_TAG_GET_ONE_ERROR: {
code: 0x015,
httpCode: 500,
module: 'publish'
},
/**
* Updating chapter failed when getting the media.
*
* @property UPDATE_CHAPTER_GET_ONE_ERROR
* @type Object
* @final
* @default 22
*/
UPDATE_CHAPTER_GET_ONE_ERROR: {
code: 0x016,
httpCode: 500,
module: 'publish'
},
/**
* Updating tag failed.
*
* @property UPDATE_TAG_ERROR
* @type Object
* @final
* @default 23
*/
UPDATE_TAG_ERROR: {
code: 0x017,
httpCode: 500,
module: 'publish'
},
/**
* Updating chapter failed.
*
* @property UPDATE_CHAPTER_ERROR
* @type Object
* @final
* @default 24
*/
UPDATE_CHAPTER_ERROR: {
code: 0x018,
httpCode: 500,
module: 'publish'
},
/**
* Removing media tags failed when getting the media.
*
* @property REMOVE_TAGS_GET_ONE_ERROR
* @type Object
* @final
* @default 25
*/
REMOVE_TAGS_GET_ONE_ERROR: {
code: 0x019,
httpCode: 500,
module: 'publish'
},
/**
* Removing tags failed.
*
* @property REMOVE_TAGS_ERROR
* @type Object
* @final
* @default 26
*/
REMOVE_TAGS_ERROR: {
code: 0x01a,
httpCode: 500,
module: 'publish'
},
/**
* Removing media chapters failed when getting the media.
*
* @property REMOVE_CHAPTERS_GET_ONE_ERROR
* @type Object
* @final
* @default 27
*/
REMOVE_CHAPTERS_GET_ONE_ERROR: {
code: 0x01b,
httpCode: 500,
module: 'publish'
},
/**
* Removing chapters failed.
*
* @property REMOVE_CHAPTERS_ERROR
* @type Object
* @final
* @default 28
*/
REMOVE_CHAPTERS_ERROR: {
code: 0x01c,
httpCode: 500,
module: 'publish'
},
/**
* Converting points of interest failed when getting media.
*
* @property CONVERT_POINTS_OF_INTEREST_GET_ONE_ERROR
* @type Object
* @final
* @default 29
*/
CONVERT_POINTS_OF_INTEREST_GET_ONE_ERROR: {
code: 0x01d,
httpCode: 500,
module: 'publish'
},
/**
* Converting points of interest failed, media is not ready.
*
* @property CONVERT_POINTS_OF_INTEREST_NOT_READY_ERROR
* @type Object
* @final
* @default 30
*/
CONVERT_POINTS_OF_INTEREST_NOT_READY_ERROR: {
code: 0x01e,
httpCode: 500,
module: 'publish'
},
/**
* Updating media statistics failed when getting media.
*
* @property STATISTICS_GET_ONE_ERROR
* @type Object
* @final
* @default 31
*/
STATISTICS_GET_ONE_ERROR: {
code: 0x01f,
httpCode: 500,
module: 'publish'
},
/**
* Convert points of interest error.
*
* @property CONVERT_VIDEO_POI_ERROR
* @type Object
* @final
* @default 32
*/
CONVERT_VIDEO_POI_ERROR: {
code: 0x020,
httpCode: 500,
module: 'publish'
},
/**
* Invalid video thumbnail.
*
* @property INVALID_VIDEO_THUMBNAIL
* @type Object
* @final
* @default 33
*/
INVALID_VIDEO_THUMBNAIL: {
code: 0x021,
httpCode: 500,
module: 'publish'
},
/**
* Updating a media failed when parsing body.
*
* @property UPDATE_MEDIA_PARSE_ERROR
* @type Object
* @final
* @default 34
*/
UPDATE_MEDIA_PARSE_ERROR: {
code: 0x022,
httpCode: 500,
module: 'publish'
},
/**
* Updating a media failed.
*
* @property UPDATE_MEDIA_ERROR
* @type Object
* @final
* @default 35
*/
UPDATE_MEDIA_ERROR: {
code: 0x023,
httpCode: 500,
module: 'publish'
},
/**
* Getting media failed.
*
* @property GET_MEDIA_ERROR
* @type Object
* @final
* @default 36
*/
GET_MEDIA_ERROR: {
code: 0x024,
httpCode: 500,
module: 'publish'
},
/**
* Getting media failed when getting video platform information.
*
* @property GET_MEDIA_GET_INFO_ERROR
* @type Object
* @final
* @default 37
*/
GET_MEDIA_GET_INFO_ERROR: {
code: 0x025,
httpCode: 500,
module: 'publish'
},
/**
* Getting custom properties failed while saving TLS settings.
*
* @property SAVE_TLS_SETTINGS_CUSTOM_PROPERTIES_ERROR
* @type Object
* @final
* @default 38
*/
SAVE_TLS_SETTINGS_CUSTOM_PROPERTIES_ERROR: {
code: 0x026,
httpCode: 500,
module: 'publish'
},
/**
* Saving TLS settings failed.
*
* @property SAVE_TLS_SETTINGS_ERROR
* @type Object
* @final
* @default 39
*/
SAVE_TLS_SETTINGS_ERROR: {
code: 0x027,
httpCode: 500,
module: 'publish'
},
/**
* Synchronizing media with media platform failed while updating media.
*
* @property UPDATE_MEDIA_SYNCHRONIZE_ERROR
* @type Object
* @final
* @default 40
*/
UPDATE_MEDIA_SYNCHRONIZE_ERROR: {
code: 0x028,
httpCode: 500,
module: 'publish'
},
/**
* Removing medias failed, a media is not in a stable state.
*
* @property REMOVE_MEDIAS_STATE_ERROR
* @type Object
* @final
* @default 41
*/
REMOVE_MEDIAS_STATE_ERROR: {
code: 0x029,
httpCode: 500,
module: 'publish'
},
/**
* Removing medias failed.
*
* @property REMOVE_MEDIAS_ERROR
* @type Object
* @final
* @default 42
*/
REMOVE_MEDIAS_ERROR: {
code: 0x02a,
httpCode: 500,
module: 'publish'
},
/**
* Removing medias failed when getting the list of medias.
*
* @property REMOVE_MEDIAS_GET_MEDIAS_ERROR
* @type Object
* @final
* @default 43
*/
REMOVE_MEDIAS_GET_MEDIAS_ERROR: {
code: 0x02b,
httpCode: 500,
module: 'publish'
},
// Authentication errors
/**
* Getting a ready video failed, user doesn't have enough privilege.
*
* @property GET_VIDEO_READY_FORBIDDEN
* @type Object
* @final
* @default 256
*/
GET_VIDEO_READY_FORBIDDEN: {
code: 0x100,
httpCode: 403,
module: 'publish'
},
/**
* Publishing a video failed, user doesn't have enough privilege.
*
* @property PUBLISH_VIDEOS_FORBIDDEN
* @type Object
* @final
* @default 257
*/
PUBLISH_VIDEOS_FORBIDDEN: {
code: 0x101,
httpCode: 403,
module: 'publish'
},
/**
* Unpublishing a video failed, user doesn't have enough privilege.
*
* @property UNPUBLISH_VIDEOS_FORBIDDEN
* @type Object
* @final
* @default 258
*/
UNPUBLISH_VIDEOS_FORBIDDEN: {
code: 0x102,
httpCode: 403,
module: 'publish'
},
/**
* Updating a media tag failed, user doesn't have enough privilege.
*
* @property UPDATE_TAG_FORBIDDEN
* @type Object
* @final
* @default 259
*/
UPDATE_TAG_FORBIDDEN: {
code: 0x103,
httpCode: 403,
module: 'publish'
},
/**
* Updating a media failed, user doesn't have enough privilege.
*
* @property UPDATE_MEDIA_FORBIDDEN
* @type Object
* @final
* @default 260
*/
UPDATE_MEDIA_FORBIDDEN: {
code: 0x104,
httpCode: 403,
module: 'publish'
},
/**
* Updating a media chapter failed, user doesn't have enough privilege.
*
* @property UPDATE_CHAPTER_FORBIDDEN
* @type Object
* @final
* @default 261
*/
UPDATE_CHAPTER_FORBIDDEN: {
code: 0x105,
httpCode: 403,
module: 'publish'
},
/**
* Removing media tags failed, user doesn't have enough privilege.
*
* @property REMOVE_TAGS_FORBIDDEN
* @type Object
* @final
* @default 262
*/
REMOVE_TAGS_FORBIDDEN: {
code: 0x106,
httpCode: 403,
module: 'publish'
},
/**
* Removing media chapters failed, user doesn't have enough privilege.
*
* @property REMOVE_CHAPTERS_FORBIDDEN
* @type Object
* @final
* @default 263
*/
REMOVE_CHAPTERS_FORBIDDEN: {
code: 0x107,
httpCode: 403,
module: 'publish'
},
/**
* Converting points of interest failed, user doesn't have enough privilege.
*
* @property CONVERT_POINTS_OF_INTEREST_FORBIDDEN
* @type Object
* @final
* @default 264
*/
CONVERT_POINTS_OF_INTEREST_FORBIDDEN: {
code: 0x108,
httpCode: 403,
module: 'publish'
},
/**
* Getting media failed, user doesn't have enough privilege.
*
* @property GET_MEDIA_FORBIDDEN
* @type Object
* @final
* @default 265
*/
GET_MEDIA_FORBIDDEN: {
code: 0x109,
httpCode: 403,
module: 'publish'
},
/**
* Removing medias failed, user doesn't have enough privilege.
*
* @property REMOVE_MEDIAS_FORBIDDEN
* @type Object
* @final
* @default 266
*/
REMOVE_MEDIAS_FORBIDDEN: {
code: 0x10a,
httpCode: 403,
module: 'publish'
},
// Wrong parameters
/**
* Getting a ready video failed, missing parameters.
*
* @property GET_VIDEO_READY_MISSING_PARAMETERS
* @type Object
* @final
* @default 512
*/
GET_VIDEO_READY_MISSING_PARAMETERS: {
code: 0x200,
httpCode: 400,
module: 'publish'
},
/**
* Publishing a video failed, missing parameters.
*
* @property PUBLISH_VIDEOS_MISSING_PARAMETERS
* @type Object
* @final
* @default 513
*/
PUBLISH_VIDEOS_MISSING_PARAMETERS: {
code: 0x201,
httpCode: 400,
module: 'publish'
},
/**
* Unpublishing a video failed, missing parameters.
*
* @property UNPUBLISH_VIDEOS_MISSING_PARAMETERS
* @type Object
* @final
* @default 514
*/
UNPUBLISH_VIDEOS_MISSING_PARAMETERS: {
code: 0x202,
httpCode: 400,
module: 'publish'
},
/**
* Retrying video processing failed, missing parameters.
*
* @property RETRY_VIDEOS_MISSING_PARAMETERS
* @type Object
* @final
* @default 515
*/
RETRY_VIDEOS_MISSING_PARAMETERS: {
code: 0x203,
httpCode: 400,
module: 'publish'
},
/**
* Starting a video upload failed, missing parameters.
*
* @property START_UPLOAD_VIDEOS_MISSING_PARAMETERS
* @type Object
* @final
* @default 516
*/
START_UPLOAD_VIDEOS_MISSING_PARAMETERS: {
code: 0x204,
httpCode: 400,
module: 'publish'
},
/**
* Setting statistics about an entity failed, missing the id parameter.
*
* @property STATISTICS_MISSING_ID_PARAMETERS
* @type Object
* @final
* @default 517
*/
STATISTICS_MISSING_ID_PARAMETERS: {
code: 0x205,
httpCode: 400,
module: 'publish',
message: 'Missing Id parameter'
},
/**
* Setting statistics about an entity failed, unknown statistic property.
*
* @property STATISTICS_PROPERTY_UNKNOWN
* @type Object
* @final
* @default 518
*/
STATISTICS_PROPERTY_UNKNOWN: {
code: 0x206,
httpCode: 400,
module: 'publish',
message: 'Unknown statistics property'
},
/**
* Setting statistics about an entity failed, unknown entity.
*
* @property STATISTICS_ENTITY_UNKNOWN
* @type Object
* @final
* @default 519
*/
STATISTICS_ENTITY_UNKNOWN: {
code: 0x207,
httpCode: 400,
module: 'publish',
message: 'Unknown statistics entity'
},
/**
* Setting statistics about an entity failed, missing the count parameter.
*
* @property STATISTICS_MISSING_COUNT_PARAMETERS
* @type Object
* @final
* @default 520
*/
STATISTICS_MISSING_COUNT_PARAMETERS: {
code: 0x208,
httpCode: 400,
module: 'publish',
message: 'Missing count parameter'
},
/**
* Getting the list of videos failed, wrong parameters.
*
* @property GET_VIDEOS_WRONG_PARAMETERS
* @type Object
* @final
* @default 521
*/
GET_VIDEOS_WRONG_PARAMETERS: {
code: 0x209,
httpCode: 400,
module: 'publish'
},
/**
* Updating a media tag failed, missing parameters.
*
* @property UPDATE_TAG_MISSING_PARAMETERS
* @type Object
* @final
* @default 522
*/
UPDATE_TAG_MISSING_PARAMETERS: {
code: 0x20a,
httpCode: 400,
module: 'publish'
},
/**
* Removing media tags failed, missing parameters.
*
* @property REMOVE_TAGS_MISSING_PARAMETERS
* @type Object
* @final
* @default 523
*/
REMOVE_TAGS_MISSING_PARAMETERS: {
code: 0x20b,
httpCode: 400,
module: 'publish'
},
/**
* Adding a media failed, wrong parameters.
*
* @property ADD_MEDIA_MISSING_PARAMETERS
* @type Object
* @final
* @default 524
*/
ADD_MEDIA_MISSING_PARAMETERS: {
code: 0x20c,
httpCode: 400,
module: 'publish'
},
/**
* Adding media failed, missing the body.
*
* @property ADD_MEDIA_MISSING_INFO_PARAMETERS
* @type Object
* @final
* @default 525
*/
ADD_MEDIA_MISSING_INFO_PARAMETERS: {
code: 0x20d,
httpCode: 400,
module: 'publish'
},
/**
* Adding media failed, wrong file parameter.
*
* @property ADD_MEDIA_WRONG_FILE_PARAMETER
* @type Object
* @final
* @default 526
*/
ADD_MEDIA_WRONG_FILE_PARAMETER: {
code: 0x20e,
httpCode: 400,
module: 'publish',
message: 'Wrong file parameter'
},
/**
* Adding media failed, wrong parameters.
*
* @property ADD_MEDIA_WRONG_PARAMETERS
* @type Object
* @final
* @default 527
*/
ADD_MEDIA_WRONG_PARAMETERS: {
code: 0x20f,
httpCode: 400,
module: 'publish'
},
/**
* Adding media failed, wrong properties parameter.
*
* @property ADD_MEDIA_WRONG_PROPERTIES_PARAMETER
* @type Object
* @final
* @default 528
*/
ADD_MEDIA_WRONG_PROPERTIES_PARAMETER: {
code: 0x210,
httpCode: 400,
module: 'publish'
},
/**
* Saving medias settings failed, missing parameters.
*
* @property SAVE_MEDIAS_SETTINGS_MISSING_PARAMETERS
* @type Object
* @final
* @default 529
*/
SAVE_MEDIAS_SETTINGS_MISSING_PARAMETERS: {
code: 0x211,
httpCode: 400,
module: 'publish'
},
/**
* Saving medias settings failed, wrong parameters.
*
* @property SAVE_MEDIAS_SETTINGS_WRONG_PARAMETERS
* @type Object
* @final
* @default 530
*/
SAVE_MEDIAS_SETTINGS_WRONG_PARAMETERS: {
code: 0x212,
httpCode: 400,
module: 'publish'
},
/**
* Getting video ready failed, wrong parameters.
*
* @property GET_VIDEO_READY_WRONG_PARAMETERS
* @type Object
* @final
* @default 531
*/
GET_VIDEO_READY_WRONG_PARAMETERS: {
code: 0x213,
httpCode: 400,
module: 'publish'
},
/**
* Publishing videos failed, wrong parameters.
*
* @property PUBLISH_VIDEOS_WRONG_PARAMETERS
* @type Object
* @final
* @default 532
*/
PUBLISH_VIDEOS_WRONG_PARAMETERS: {
code: 0x214,
httpCode: 400,
module: 'publish'
},
/**
* Unpublishing videos failed, wrong parameters.
*
* @property UNPUBLISH_VIDEOS_WRONG_PARAMETERS
* @type Object
* @final
* @default 533
*/
UNPUBLISH_VIDEOS_WRONG_PARAMETERS: {
code: 0x215,
httpCode: 400,
module: 'publish'
},
/**
* Starting videos upload failed, wrong parameters.
*
* @property START_UPLOAD_VIDEOS_WRONG_PARAMETERS
* @type Object
* @final
* @default 534
*/
START_UPLOAD_VIDEOS_WRONG_PARAMETERS: {
code: 0x216,
httpCode: 400,
module: 'publish'
},
/**
* Updating a media tag failed, wrong parameters.
*
* @property UPDATE_TAG_WRONG_PARAMETERS
* @type Object
* @final
* @default 535
*/
UPDATE_TAG_WRONG_PARAMETERS: {
code: 0x217,
httpCode: 400,
module: 'publish'
},
/**
* Updating a media chapter failed, missing parameters.
*
* @property UPDATE_CHAPTER_MISSING_PARAMETERS
* @type Object
* @final
* @default 536
*/
UPDATE_CHAPTER_MISSING_PARAMETERS: {
code: 0x218,
httpCode: 400,
module: 'publish'
},
/**
* Updating a media chapter failed, wrong parameters.
*
* @property UPDATE_CHAPTER_WRONG_PARAMETERS
* @type Object
* @final
* @default 537
*/
UPDATE_CHAPTER_WRONG_PARAMETERS: {
code: 0x219,
httpCode: 400,
module: 'publish'
},
/**
* Removing media tags failed, wrong parameters.
*
* @property REMOVE_TAGS_WRONG_PARAMETERS
* @type Object
* @final
* @default 538
*/
REMOVE_TAGS_WRONG_PARAMETERS: {
code: 0x21a,
httpCode: 400,
module: 'publish'
},
/**
* Removing media chapters failed, missing parameters.
*
* @property REMOVE_CHAPTERS_MISSING_PARAMETERS
* @type Object
* @final
* @default 539
*/
REMOVE_CHAPTERS_MISSING_PARAMETERS: {
code: 0x21b,
httpCode: 400,
module: 'publish'
},
/**
* Removing media chapters failed, wrong parameters.
*
* @property REMOVE_CHAPTERS_WRONG_PARAMETERS
* @type Object
* @final
* @default 540
*/
REMOVE_CHAPTERS_WRONG_PARAMETERS: {
code: 0x21c,
httpCode: 400,
module: 'publish'
},
/**
* Converting points of interest failed, missing parameters.
*
* @property CONVERT_POINTS_OF_INTEREST_MISSING_PARAMETERS
* @type Object
* @final
* @default 541
*/
CONVERT_POINTS_OF_INTEREST_MISSING_PARAMETERS: {
code: 0x21d,
httpCode: 400,
module: 'publish'
},
/**
* Converting points of interest failed, wrong parameters.
*
* @property CONVERT_POINTS_OF_INTEREST_WRONG_PARAMETERS
* @type Object
* @final
* @default 542
*/
CONVERT_POINTS_OF_INTEREST_WRONG_PARAMETERS: {
code: 0x21e,
httpCode: 400,
module: 'publish'
},
/**
* Getting media failed, wrong parameters.
*
* @property GET_MEDIA_WRONG_PARAMETERS
* @type Object
* @final
* @default 543
*/
GET_MEDIA_WRONG_PARAMETERS: {
code: 0x21f,
httpCode: 400,
module: 'publish'
},
/**
* Getting media failed, missing parameters.
*
* @property GET_MEDIA_MISSING_PARAMETERS
* @type Object
* @final
* @default 544
*/
GET_MEDIA_MISSING_PARAMETERS: {
code: 0x220,
httpCode: 400,
module: 'publish'
},
/**
* Retrying video processing failed, wrong parameters.
*
* @property RETRY_VIDEOS_WRONG_PARAMETERS
* @type Object
* @final
* @default 545
*/
RETRY_VIDEOS_WRONG_PARAMETERS: {
code: 0x221,
httpCode: 400,
module: 'publish'
},
/**
* Getting the list of videos failed, wrong custom properties values.
*
* @property GET_VIDEOS_CUSTOM_PROPERTIES_WRONG_PARAMETERS
* @type Object
* @final
* @default 546
*/
GET_VIDEOS_CUSTOM_PROPERTIES_WRONG_PARAMETERS: {
code: 0x222,
httpCode: 400,
module: 'publish'
},
/**
* Saving TLS settings failed, wrong parameters.
*
* @property SAVE_TLS_SETTINGS_WRONG_PARAMETERS
* @type Object
* @final
* @default 547
*/
SAVE_TLS_SETTINGS_WRONG_PARAMETERS: {
code: 0x223,
httpCode: 400,
module: 'publish'
},
/**
* Saving TLS settings failed, one or more custom properties do not exist.
*
* @property SAVE_TLS_SETTINGS_WRONG_PROPERTIES_PARAMETER
* @type Object
* @final
* @default 548
*/
SAVE_TLS_SETTINGS_WRONG_PROPERTIES_PARAMETER: {
code: 0x224,
httpCode: 400,
module: 'publish'
},
/**
* Adding media failed, missing the media file.
*
* @property ADD_MEDIA_MISSING_FILE_PARAMETER
* @type Object
* @final
* @default 549
*/
ADD_MEDIA_MISSING_FILE_PARAMETER: {
code: 0x225,
httpCode: 400,
module: 'publish'
},
/**
* Removing medias failed, missing the media ids.
*
* @property REMOVE_MEDIAS_MISSING_PARAMETERS
* @type Object
* @final
* @default 550
*/
REMOVE_MEDIAS_MISSING_PARAMETERS: {
code: 0x226,
httpCode: 400,
module: 'publish'
},
// Not found errors
/**
* Ready video was not found.
*
* @property GET_VIDEO_READY_NOT_FOUND
* @type Object
* @final
* @default 768
*/
GET_VIDEO_READY_NOT_FOUND: {
code: 0x300,
httpCode: 404,
module: 'publish'
},
/**
* Media was not found.
*
* @property GET_MEDIA_NOT_FOUND
* @type Object
* @final
* @default 769
*/
GET_MEDIA_NOT_FOUND: {
code: 0x301,
httpCode: 404,
module: 'publish'
},
/**
* Media was not found when trying to update it.
*
* @property UPDATE_MEDIA_NOT_FOUND_ERROR
* @type Object
* @final
* @default 770
*/
UPDATE_MEDIA_NOT_FOUND_ERROR: {
code: 0x302,
httpCode: 404,
module: 'publish'
}
};
Object.freeze(HTTP_ERRORS);
module.exports = HTTP_ERRORS;