# Errors

### Error Messages

The following table lists all error messages used across the DVR client modules:

| Module                                                                                                                                          | Error Message                      | Description                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- | --------------------------------------------------------------------- |
| [FFI Helpers](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/functions/functions-ffihelper)                 | `MISSING_PUBLIC_KEY_VALUES`        | Thrown when a public key option is missing 'x' or 'y' values          |
| [FFI Helpers](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/functions/functions-ffihelper)                 | `MISSING_KEYSET_ENDPOINT_VALUES`   | Thrown when a keyset endpoint option is missing 'jku' or 'kid' values |
| [FFI Helpers](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/functions/functions-ffihelper)                 | `INVALID_PUBLIC_KEY_OPTION_TYPE`   | Thrown when an invalid public key option type is provided             |
| [FFI Helpers](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/functions/functions-ffihelper)                 | `MISSING_USER_DATA_REQUESTS`       | Thrown when user\_data\_requests array is empty                       |
| [FFI Helpers](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/functions/functions-ffihelper)                 | `MISSING_USER_DATA_VERIFYING_KEYS` | Thrown when user\_data\_verifying\_keys array is empty                |
| [JWT Helpers](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/functions/functions-jwthelper)                 | `ERROR_INVALID_PAYLOAD`            | Thrown when parsed payload is not of type DvrData                     |
| [JWT Helpers](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/functions/functions-jwthelper)                 | `ERROR_INVALID_JWT`                | Thrown when JWT token format is invalid                               |
| [JWT Helpers](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/functions/functions-jwthelper)                 | `ERROR_INVALID_ZK_PROOF`           | Thrown when ZK proof payload format is invalid                        |
| [Public Key Utils](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/functions/functions-publickeyoptionutils) | `INVALID_INPUT`                    | Thrown when input is neither a valid PublicKey nor KeysetEndpoint     |
| [Interface](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/interfaces/interfaces)                           | `INVALID_TOKEN`                    | Constant string representing an invalid token                         |
| [Interface](https://gl-docs.gitbook.io/zkpass/zkpass-developers-guide/api-reference/typescript/interfaces/interfaces)                           | `INVALID_VERIFY_PROOF`             | JSON string representing an invalid verify proof error                |
