"""Generic error messages.""" ERROR_CODE_AUTHORIZATION = 'authorization_error' ERROR_CODE_BAD_REQUEST = 'bad_request' ERROR_CODE_BAD_GRASS_REQUEST = 'bad_grass_request_error' ERROR_CODE_CORRECTION_CONFLICT = 'correction_conflict' ERROR_CODE_NOT_FOUND = 'not_found' ERROR_CODE_MISSING_HEADER = 'missing_header_error' ERROR_CODE_INVALID_INPUT = 'invalid_input' ERROR_MESSAGE_MISSING_GRASS_HEADERS = 'Missing Grass Headers' ERROR_MESSAGE_INCOMPLETE_GRASS_HEADERS = 'incomplete account headers' ERROR_MESSAGE_INVALID_GRASS_ACCOUNT_TYPE = 'Invalid Grass Account Type' ERROR_MESSAGE_FORBIDDEN_USER = 'User is forbidden' ERROR_MESSAGE_INVALID_PROJECT = 'Invalid project id' ERROR_MESSAGE_NOT_OWNER = 'Project is not owned by account' ERROR_MESSAGE_NOT_PRODUCT_OWNER = 'Product is not owned by account' ERROR_MESSAGE_MISSING_PRODUCT_INFORMATION = 'Product information is incomplete' ERROR_MESSAGE_NO_ACCOUNT_GIVEN = 'No vendor or subaccount given' ERROR_MESSAGE_UPC_NOT_AVAILABLE = 'UPC is not available for use' ERROR_MESSAGE_UPC_NOT_VALID = 'UPC is not valid' ERROR_MESSAGE_UPC_FETCH_FAILED = 'Fetching UPC failed' ERROR_MESSAGE_PRODUCT_CODE_NOT_AVAILABLE = 'product_code is not available' ERROR_MESSAGE_ORCHARD_USER_ID_REQUIRED = 'Orchard-User-Id is required header' ERROR_MESSAGE_GRASS_REJECT_VALIDATION = ( 'Direct access through ows-grass is blocked. Only' ' non-ows-grass microservice-to-microservice requests' ' are allowed.') ERROR_MESSAGE_INVALID_RELEASE_CORRECTION = \ 'The release_correction does not reference the correct product' ERROR_MESSAGE_PRODUCT_NOT_IN_PROGRESS = 'product not in progress state' ERROR_MESSAGE_PRODUCT_NOT_SUBMITTED = 'product not in submitted state' ERROR_MESSAGE_PRODUCT_ALREADY_SUBMITTED = 'Product is already submitted.' ERROR_MESSAGE_PRODUCT_ALREADY_CHECKED_OUT = 'Product is already checked out' ERROR_MESSAGE_INVALID_NOT_FOR_DISTRIBUTION = \ 'invalid value for not_for_distribution' ERROR_MESSAGE_INVALID_RELEASE_STATUS = \ 'invalid value for release_status' ERROR_MESSAGE_CANNOT_UPDATE_RELEASE_STATUS_FOR_DISTRIBUTION = \ 'cannot update release_status as product is for dsitribution' ERROR_MESSAGE_INVALID_DATALOAD = 'Invalid payload for dataloader' ERROR_MESSAGE_ARTWORK_VALIDATION_FAILED = 'Artwork Validation Failed' ERROR_MESSAGE_MYSQL_CONNECTION_FAILED = 'Could not connect to mysql' INTERNAL_ERROR = 'internal_error' VALIDATION_ERROR = 'validation_error' SUCCESS_CODE = 'ok' OWS_PRODUCT_WORKFLOW_ERROR_CODE = 'ows_product_workflow_error' DISABLED_RELEASE_DATE_SALE_START_DATE = 'Release date or sale start date is not editable.' ERROR_MESSAGE_RELEASE_SPATIAL_NOT_FOUND = 'Release spatial record not found' ERROR_MESSAGE_RELEASE_SPATIAL_ALREADY_EXISTS = 'Spatial record already exists for this product' ERROR_CODE_FEATURING_ARTIST_MISMATCH = 'featuring_artist_mismatch' ERROR_MESSAGE_FEATURING_ARTIST_MISMATCH = ( 'A featuring artist on 100% of tracks must be listed' ' as a featuring artist on the product level') ERROR_CODE_REMIXER_MISMATCH = 'remixer_mismatch' ERROR_MESSAGE_REMIXER_MISMATCH = \ 'A remixer on 100% of tracks must be listed as a remixer on the product level' ERROR_CODE_PRIMARY_ARTIST_MISMATCH_ERROR = 'primary_artist_mismatch_error' ERROR_MESSAGE_PRIMARY_ARTIST_MISMATCH_ERROR = ( 'A primary artist on 100% of tracks must be listed' ' as a primary artist on the product level') ERROR_CODE_PRODUCER_MISMATCH = 'producer_mismatch' ERROR_MESSAGE_PRODUCER_MISMATCH = \ 'A producer on 100% of tracks must be listed as a producer on the product level' ERROR_CODE_PRODUCT_NAME_LENGTH = 'product_name_length' ERROR_MESSAGE_PRODUCT_NAME_LENGTH = 'Product name cannot be more than 255 characters.' ERROR_CODE_VARIOUS_ARTISTS_ON_FEATURING = 'various_artists_on_featuring_artist' ERROR_MESSAGE_VARIOUS_ARTISTS = 'Please list all artists individually and do not use "Various Artists".' ERROR_CODE_SPATIAL_UPC_REQUIRED = 'spatial_upc_required' ERROR_MESSAGE_SPATIAL_UPC_REQUIRED = 'A spatial UPC record is required for products with spatial audio assets.'