6. Handling Errors
Handling Errors
HAT JS error response:
Error Codes:
Cause
Message
Error definitions
HAT_CLIENT_VALIDATION
HAT_DOMAIN_IS_UNDEFINED
hatDomain
parameter is required
HAT_CLIENT_VALIDATION
RECORD_IDS_MISSING
recordsIds
array parameter is empty or null
HAT_CLIENT_VALIDATION
APPLICATION_NOT_SUPPORTED
application is not supported
HAT_CLIENT_VALIDATION
NOT_AUTHENTICATED
client is not authenticated
HAT_TOKEN_VALIDATION
HAT_TOKEN_IS_NOT_VALID_OR_EXPIRED
Authentication token has expired or is not valid
HAT_TOKEN_VALIDATION
HAT_TOKEN_IS_UNDEFINED
Authentication token is undefined
HAT_TOKEN_VALIDATION
HAT_TOKEN_FAILED_TO_DECODE
Authentication token has failed to decode
HAT_API_EXCEPTION
HTTP_RESPONSE_FAILED
HTTP response failed
HAT_FILE_API_EXCEPTION
FILE_IS_UNDEFINED
File parameter is undefined
HAT_FILE_API_EXCEPTION
FAILED_TO_FETCH_METADATA
Failed to fetch HAT File metadata
HAT_FILE_API_EXCEPTION
FILE_FAILED_TO_UPLOAD
Failed to upload the file to AWS
Last updated