"""Generic error messages.""" # Status codes for responses SUCCESS_CODE = 200 CREATED_CODE = 201 FORBIDDEN_CODE = 403 # Result codes for responses INTERNAL_ERROR = 'internal_error' VALIDATION_ERROR = 'validation_error' OWNERSHIP_ERROR = 'ownership_error' INTERNAL_SYSTEM_ERROR = 'internal_system_error' ERROR_CODE_BAD_GRASS_REQUEST = 'authorization_error' ERROR_CODE_AUTHORIZATION = 'authorization_error' # Result messages for responses ERROR_MESSAGE_FORBIDDEN_USER = 'user is forbidden' ERROR_MESSAGE_INCOMPLETE_GRASS_HEADERS = 'Incomplete Grass Headers' ERROR_MESSAGE_BAD_REQUEST = 'Bad request' ERROR_SUBACCOUNT_NOT_FOUND_MESSAGE = 'subaccount not found' ERROR_SUBACCOUNT_LOOKUP_FAILED_MESSAGE = 'subaccount vendor_id lookup failed' VENDOR_DENIED_MESSAGE = 'access denied to the requested vendor'