"""Constants for errors/exceptions.""" S3_FILE_NOT_FOUND_CODE = 's3_file_not_found' ASSET_ROUTING_ERROR_CODE = 'routing_error' ERROR_MESSAGES = { S3_FILE_NOT_FOUND_CODE: '{key} not found in bucket {bucket}!', ASSET_ROUTING_ERROR_CODE: ( 'An error occurred during routing process. Error message: {message}' ), } GET_ASSET_UPLOAD_TYPE_ERROR_MESSAGE = ( 'Failed to get asset upload type from ows-assets in {source}. ' 'Status: {status}; text: {text}') GET_ASSET_NOT_FOUND_MESSAGE = ( 'Asset not found in ows-assets in {source}. ' 'Status: {status}; text: {text}')