"""Generic error messages.""" ERROR_CODE_AUTHORIZATION = 'authorization_error' ERROR_CODE_BAD_GRASS_REQUEST = 'bad_grass_request_error' ERROR_CODE_BAD_REQUEST = 'bad_request' ERROR_CODE_NOT_FOUND = 'not_found' ERROR_CODE_INVALID_DATA = 'invalid_data' ERROR_CODE_UPC_UNAVAILABLE = 'upc_unavailable' ERROR_CODE_INVALID_UPC_STATUS = 'invalid_upc_status' ERROR_CODE_ORCHARD_UPC_NOT_FOUND = 'orchard_upc_not_found' ERROR_CODE_UPC_ASSIGNED_TO_PRODUCT = 'upc_in_use_by_product' ERROR_CODE_PRODUCT_CODE_UNAVAILABLE = 'product_code_unavailable' ERROR_CODE_FAILED_UPC_STATUS_UPDATE = 'failed_upc_status_update' ERROR_MESSAGE_MISSING_GRASS_HEADERS = 'Missing Grass Headers' ERROR_MESSAGE_INCOMPLETE_GRASS_HEADERS = 'Incomplete Grass Headers' ERROR_MESSAGE_INVALID_GRASS_ACCOUNT_TYPE = 'Invalid Grass Account Type' ERROR_MESSAGE_INVALID_JWT_NO_IDENTITY_ID = 'Invalid Authorization' ERROR_MESSAGE_FORBIDDEN_USER = 'User is forbidden' ERROR_MESSAGE_FORBIDDEN_PROFILE = 'Profile has no access to the requested resource' ERROR_MESSAGE_UPC_UNAVAILABLE = 'UPC unavailable' ERROR_MESSAGE_INVALID_UPC_STATUS = 'The UPC status value was invalid' ERROR_MESSAGE_ORCHARD_UPC_NOT_FOUND = 'The UPC is not owned by the Orchard' ERROR_MESSAGE_UPC_ASSIGNED_TO_PRODUCT = \ 'The UPC is in use by a product' ERROR_MESSAGE_UPC_STATUS_NOT_UPDATED = 'The UPC status was not updated to used' ERROR_MESSAGE_CONTEXT_TYPE_REQUIRED = \ 'Required parameter `context_type` must be `digital` or `physical`' ERROR_MESSAGE_NO_ACCOUNT_GIVEN = 'No vendor or subaccount given' ERROR_MESSAGE_NO_TUIDS = 'No tuids in request body' ERROR_MESSAGE_NO_PRODUCT_IDS = 'No product ids in request body' ERROR_MESSAGE_PRODUCT_IDS_INTS = 'All product ids must be integers' ERROR_MESSAGE_NO_API_VERSION = 'No api_version in request body' INTERNAL_ERROR = 'internal_error' SUCCESS_CODE = 'ok' ERROR_MESSAGE_INVALID_STATUS = 'Invalid product status' ERROR_MESSAGE_INVALID_ACCOUNT = 'Invalid account type or id' ERROR_MESSAGE_ALL_PRODUCTS_FAILED = 'All product ids are invalid' ERROR_MESSAGE_ALL_UPCS_FAILED = 'All upcs are invalid' ERROR_MESSAGE_MISSING_PRODUCT_ID = 'Missing product ids' ERROR_MESSAGE_MAX_PRODUCT = 'Only 100 product ids accepted' ERROR_MESSAGE_MISSING_UPC = 'Missing upcs' ERROR_MESSAGE_MAX_UPC = 'Only 100 upcs accepted' ERROR_MESSAGE_INVALID_CHARACTER = 'Invalid product ids. They must be comma ' \ 'separated numbers. Alphabets and special characters are not allowed' ERROR_MESSAGE_INVALID_PRODUCT_ID = 'Invalid Product ID' ERROR_MESSAGE_PRODUCT_CODE_UNAVAILABLE = 'Provided product code is unavailable' ERROR_MESSAGE_UNIQUE_EXCEPTION = 'Overlapping display UPCs' ERROR_MESSAGE_UPCS_NOT_FOUND = \ 'upc(s) {upcs} do not belong to label id {account_id}' ERROR_MESSAGE_PRODUCTS_NOT_FOUND = \ 'no products found for isrc {isrc}' ERROR_MESSAGE_PRODUCTS_NOT_FOUND_FOR_RELEASE_IDS = \ 'no products found for release_ids {release_ids}' ERROR_MESSAGE_RELEASE_ARTIST_NOT_FOUND = \ 'release artist not found by given release_artist_id {release_artist_id}' ERROR_MESSAGE_DATE_REQUIRED = 'date parameter cannot be empty' ERROR_MESSAGE_MULTIPLE_PRODUCTS_FOUND = 'Multiple products found for the passed parameters'