---
updatedAt: 2025-11-13T15:34:04.000Z
agentTools:
  projectIndex: https://developers.bluesnap.com/v8976-Tools/llms.txt
---

# Hosted Payment Field Errors

The following errors are related to [Hosted Payment Fields](https://developers.bluesnap.com/v8976-Tools/reference/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.

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        errorCode
      </th>

      <th>
        errorDescription value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `'10'`
      </td>

      <td>
        * 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’.
      </td>
    </tr>

    <tr>
      <td>
        `'22013'`
      </td>

      <td>
        'CC type is not supported by the merchant'
      </td>
    </tr>

    <tr>
      <td>
        `'14040'`
      </td>

      <td>
        'Token is expired'
      </td>
    </tr>

    <tr>
      <td>
        `'14041'`
      </td>

      <td>
        'Could not find token'
      </td>
    </tr>

    <tr>
      <td>
        `'14042'`
      </td>

      <td>
        'Token is not associated with a payment method,\
        please verify your client integration or contact BlueSnap support'
      </td>
    </tr>

    <tr>
      <td>
        `'400'`
      </td>

      <td>
        'Session expired please refresh page to continue'
      </td>
    </tr>

    <tr>
      <td>
        `'403'`, `'404'`, `'500'`
      </td>

      <td>
        'Internal server error please try again later'
      </td>
    </tr>

    <tr>
      <td>
        3-D Secure Errors
      </td>

      <td>
        For all the 3-D Secure JavaScript errors, see the [3-D Secure for API Guide](https://developers.bluesnap.com/v8976-Basics/reference/3-d-secure-for-api#section-error-codes).
      </td>
    </tr>
  </tbody>
</Table>