"""Generic error messages.""" ERROR_CODE_AUTHORIZATION = 'authorization_error' ERROR_CODE_BAD_GRASS_REQUEST = 'bad_grass_request_error' ERROR_CODE_NOT_FOUND = 'not_found' 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_FORBIDDEN_PROFILE_TYPE_CREATE = ( 'Profile type {profile_type} is forbidden to create state for {table} {action}' ) ERROR_MESSAGE_FORBIDDEN_PROFILE_TYPE_UPDATE = 'Profile type {profile_type} is forbidden to update state for {table} {action} to {action_status}' ERROR_INVALID_ACTION_STATUS = ( 'Invalid status "{action_status}" for {parent_table_name} {action_name}' ) ERROR_MESSAGE_IS_REQUIRED = 'Message is required if status is {action_status}' ERROR_INVALID_PARENT_TABLE_NAME = 'Invalid parent table name' ERROR_ACTION_STATES_ALREADY_EXIST = ( 'States for {parent_table_name} {parent_table_id} already exist' ) ERROR_ALREADY_RUNNING = 'Action is already running' ERROR_PERIOD_IS_NOT_LOCKED = ( 'Accounting period should be locked before approving sales files' ) ERROR_PREVIOUS_ACTIONS_STATUS = ( "Can't update action {}, as earlier actions are not completed." ) ERROR_SALES_FILE_GET_ELIGIBLE_SALES_IS_NOT_COMPLETE = ( 'Get eligible sales is not completed' ) ERROR_RECORD_DOES_NOT_EXIST = ( "Record doesn't exist for {parent_table_name} {parent_table_id}." ) ERROR_INVALID_IDS = '{object} IDs must be integers' ERROR_TOO_MANY_DATALOADER_IDS = ( 'A dataloader request accepts at most {limit} ids; split the batch.' ) ERROR_DONT_HAVE_PERMISSIONS = "You don't have access to this resource!" ERROR_ADJUSTMENTS_NOT_APPLIED = 'Not all adjustments have been applied.' ERROR_PARENT_TABLE_IDS_REQUIRE_PARENT_TABLE_NAME = ( 'parent_table_ids filter requires parent_table_name to be specified' )