"""Error costants.""" VALIDATION_ERROR = 'validation_error' DATABASE_ERROR = 'database_error' AUTHORIZATION_ERROR = 'authorization_error' SQS_ERROR = 'sqs_error' # error json fields ERROR_CODE = 'code' ERROR_DETAIL = 'message' # error messages ERROR_MSG_DISTRIBUTOR_MISSING_SUBACCOUNT =\ 'Distributor must provide subaccount_id' ERROR_MESSAGE_HIGHLIGHT_NOT_FOUND = 'Highlight not found' # http response error messages ERROR_MSG_INTERNAL_SERVER = 'Internal Server Error' ERROR_MSG_NOT_FOUND = '404 Not Found' ERROR_MESSAGE_INVALID_DATALOAD = 'Invalid payload for dataloader' # Grass errors ERROR_CODE_AUTHORIZATION = 'authorization_error' ERROR_CODE_BAD_GRASS_REQUEST = 'bad_grass_request_error' ERROR_CODE_NOT_FOUND = 'not_found_error' ERROR_CODE_INTERNAL_ERROR = 'internal_error' ERROR_CODE_BAD_REQUEST = 'bad_request' 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_PRODUCTS_FOUND = \ 'There are products for this project, delete not allowed.' ERROR_CODE_MISSING_ORCHARD_USER_ID = 'missing_orchard_user_id' ERROR_MESSAGE_MISSING_ORCHARD_USER_ID = 'Missing Orchard User Id' SUCCESS_CODE = 'ok' ERROR_CODE_S3_ERROR = 's3_error' ERROR_CODE_INVALID_INPUT = 'invalid_input'