UNPKG

paradigm-core

Version:
97 lines (95 loc) 2.45 kB
const {ErrorCodes} = require('structure-core') module.exports = Object.assign(ErrorCodes, { CATEGORYIDS_INVALID: { code: 'CATEGORYIDS_INVALID', message: 'Category ids invalid' }, CATEGORYIDS_MISSING: { code: 'CATEGORYIDS_MISSING', message: 'Category ids are required' }, CHANNEL_INVALID: { code: 'CHANNEL_INVALID', message: 'An invalid channel identifier was provided' }, DOCUMENT_MISSING_FIELDS: { code: 'DOCUMENT_MISSING_FIELDS', message: 'The revision fields for the document are missing. This is probably a result of a failed revision fetch.' }, DOCUMENT_SLUG_INVALID: { code: 'DOCUMENT_SLUG_INVALID', message: 'This slug is already in use' }, FIELDS_INVALID: { code: 'FIELDS_INVALID', message: 'Fields is invalid' }, FROMENTITYID_INVALID: { code: 'FROMENTITYID_INVALID', message: 'fromEntityId is invalid' }, FROMENTITYID_MISSING: { code: 'FROMENTITYID_MISSING', message: 'A fromEntityId is required' }, FROMENTITYTYPE_INVALID: { code: 'FROMENTITYTYPE_INVALID', message: 'fromEntityType is invalid' }, FROMENTITYTYPE_MISSING: { code: 'FROMENTITYTYPE_MISSING', message: 'A fromEntityType is required' }, FROMURL_INVALID: { code: 'FROMURL_INVALID', message: 'fromUrl is invalid' }, FROMURL_MISSING: { code: 'FROMURL_MISSING', message: 'A fromUrl is required' }, PURGE_FAILED: { code: 'PURGE_FAILED', message: 'Purge has failed to complete successfully' }, PURGEFACEBOOK_INVALID: { code: 'PURGEFACEBOOK_INVALID', message: 'Purge facebook is invalid' }, SLUG_MISSING: { code: 'SLUG_MISSING', message: 'A slug is required' }, SLUG_INVALID: { code: 'SLUG_INVALID', message: 'Slug is invalid' }, SID_INVALID: { code: 'SID_INVALID', message: 'Sid is invalid' }, TOENTITYID_INVALID: { code: 'TOENTITYID_INVALID', message: 'toEntityId is invalid' }, TOENTITYID_MISSING: { code: 'TOENTITYID_MISSING', message: 'A toEntityId is required' }, TOENTITYTYPE_INVALID: { code: 'TOENTITYTYPE_INVALID', message: 'toEntityType is invalid' }, TOENTITYTYPE_MISSING: { code: 'TOENTITYTYPE_MISSING', message: 'A toEntityType is required' }, TOURL_INVALID: { code: 'TOURL_INVALID', message: 'toUrl is invalid' }, TOURL_MISSING: { code: 'TOURL_MISSING', message: 'A toUrl is required' }, })