The following errors are related to Hosted Payment Fields requests:
| Code | Name | Description | 
|---|---|---|
| 14040 | EXPIRED_TOKEN | Token is expired | 
| 14002 | INVALID_CC_NUMBER | Invalid credit card number | 
| 14041 | TOKEN_NOT_FOUND | Could not find the token | 
| 14042 | NO_PAYMENT_DETAILS_LINKED_TO_TOKEN | Token is not associated with a payment method, please verify your client integration or contact BlueSnap support. | 
JavaScript Errors
The following are all the errors that can be passed to your onError callback function in the errorCode and errorDescription parameters. 
| errorCode | errorDescription value | 
|---|---|
'10' |  If tagId is ccn, errorDescription is 'invalid' or ‘empty’.If tagId is cvv, errorDescription is 'invalid' or ‘empty’.* If tagId is exp, errorDescription is 'invalid' or ‘empty’. | 
'22013' | 'CC type is not supported by the merchant' | 
'14040' | 'Token is expired' | 
'14041' | 'Could not find token' | 
'14042' | 'Token is not associated with a payment method, please verify your client integration or contact BlueSnap support'  | 
'400' | 'Session expired please refresh page to continue' | 
'403', '404', '500' | 'Internal server error please try again later' | 
| 3-D Secure Errors | For all the 3-D Secure JavaScript errors, see the 3-D Secure for API Guide. | 
