"""Generic error messages.""" # Auth and handlers ERROR_CODE_AUTHORIZATION = 'authorization_error' ERROR_CODE_BAD_GRASS_REQUEST = 'bad_grass_request_error' ERROR_CODE_NOT_FOUND = 'not_found' ERROR_CODE_GENERIC = 'generic_error_code' 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_FORBIDDEN_USER = 'User is forbidden' ERROR_MESSAGE_NOT_AUTHORIZED = 'User is not authorized for this information' # Data access ERROR_CODE_MODEL_VALIDATION = 'model_data_validation_error' ERROR_CODE_INVALID_TASK_STATE = 'invalid_state_change_error' ERROR_TASK_NOT_FOUND = 'Task with specified ID was not found' ERROR_MESSAGE_RELEASE_NOT_FOUND = 'Release with the specified ID was not found' ERROR_MESSAGE_STORE_NOT_FOUND = 'Store with the specified ID was not found' # Generic SUCCESS_CODE = 'ok' # Validators HEADER_VALIDATION_ERROR = 'header_validation_error' BODY_VALIDATION_ERROR = 'body_validation_error' ERROR_CODE_QUERY_PARAM = 'query_parameter_error' ERROR_INVALID_QUERY_PARAM = ( "Only 'product_ids' is accepted as parameter, " 'e.g. /status?product_ids=1,2,3') # SQS ERROR_MESSAGE_NO_SQS_QUEUE = 'Unable to get SQS queue' ERROR_CODE_NO_SQS_QUEUE = 'queue_not_available_error' # Stores DEEZER_QUOTA_EXCEEDED_ERROR_CODE = 4 DEEZER_RELEASE_NOT_FOUND_CODE = 800