"""Error Constants.""" FORBIDDEN_CODE = 403 NOT_FOUND = 404 BAD_REQUEST_ERROR = 'bad_request' INTERNAL_ERROR = 'internal_error' VALIDATION_ERROR = 'validation_error' OWNERSHIP_ERROR = 'ownership_error' OWNERSHIP_ERROR_MESSAGE = '{} is not the owner of the product' INTERNAL_SYSTEM_ERROR = 'internal_system_error' ASSET_ERROR = 'asset_error' CARVEIN_ERROR = 'carvein_error' SALES_GOALS_ERROR = 'salesgoals_error' RELEASE_STATUS_ERROR = 'release_status_error' RELEASE_STATUS_UPC_ERROR = 'release_status_upc_error' RELEASE_STATUS_SALE_START_DATE_ERROR = 'release_status_sale_start_date_error' RELEASE_STATUS_SALE_START_DATE_US_ERROR = \ 'release_status_sale_start_date_us_error' RELEASE_STATUS_SALE_START_DATE_AU_CA_EU_ERROR = \ 'release_status_sale_start_date_au_ca_eu_error' RELEASE_STATUS_SALE_START_DATE_DEFAULT_ERROR = \ 'release_status_sale_start_date_default_error' GRASS_HEADER_IS_NOT_PRESENT_MESSAGE = 'Not all the grass headers are provided' PUBLISHING_OBLIGATION_NOT_FOUND_MESSAGE = 'Publishing obligation is not found' OWS_CONTRACTS_ERROR_CODE = 'ows_contracts_error' PUBLISHING_OBLIGATION_NOT_FOUND_NO_TRACK_MESSAGE = ( 'Publishing obligations not found, product {} has no tracks') PUBLISHING_OBLIGATION_NOT_FOUND_NO_TRACK_CODE = ( 'publishing_obligations_not_found_no_track') RELEASE_IN_CONTENT_MESSAGE = 'Operation can only be applied when release ' \ 'is in_content.' RELEASE_NOT_IN_PROGRESS = 'Operation can only be applied when release is in ' \ 'progress or is submitted' DISCOUNT_ERROR = 'release_status_discount_error' DISCOUNT_REQUIRED_ERROR = 'When in the US supply chain you must supply ' + \ 'the discount policy.' FIRST_WEEK_ESTIMATE_ERROR = 'release_status_first_week_estimate_error' FIRST_WEEK_ESTIMATE_ERROR_MESSAGE = 'When in the US supply chain you ' + \ 'must supply the first week estimate.' SUPPLY_CHAIN_EMPTY = 'Supply chain metadata is not available.' SUPPLY_CHAIN_INFO_EMPTY = 'Supply chain info is not available.' REQUEST_DATA_EMPTY = 'Data or required format in Request data is not found.' NOT_FOUND_MESSAGE = 'Not found' SUPPLYCHAIN_AVAILABLE = 'Supply chain exists for product_id: {}' PRODUCT_DISTRIBUTION_NOT_FOUND_MESSAGE = \ 'Product is not found in product distribution' ERROR_CODE_MISSING_ORCHARD_USER_ID = 'missing_orchard_user_id' ERROR_MESSAGE_MISSING_ORCHARD_USER_ID = 'Missing Orchard User Id' ERROR_CODE_MISSING_DISTRIBUTE_TO = 'missing_distribute_to' ERROR_MESSAGE_MISSING_DISTRIBUTE_TO = 'Missing value of distribute_to.'