zkPass
zkPass Developer's Guide
zkPass Developer's Guide
  • â›Šī¸Introduction
  • ZKPASS OVERVIEW
    • đŸ›ī¸Architecture
    • 🧱zkPass Components
    • 🤝Trust Models
    • 🚚Deployment
      • Public-Cloud Hosting
      • Private-Cloud Hosting
      • On-Premise Hosting
    • đŸŽ¯SDK Objectives
    • 🔑API Key
  • zkPass Modules
    • â˜ī¸DVR
      • đŸ—ģHigh Level View
      • đŸ—ī¸Key Concepts
        • User Data
        • DVR Info
        • zkPass Proof
      • đŸ‘ĨDVR Client Roles
        • Data Issuer
          • Providing User Data Retrieval API
        • Data Holder
          • 1. Retrieving the DVR
          • 2. Retrieving the User Data
          • 3. Generating the Proof
          • 4. Verifying the Proof
        • Proof Verifier
          • 1. Providing DVR Retrieval API
          • 2. Providing Proof Verification API
      • 🔎DVR Query
        • Building Query Engine
        • Processing Query
        • Query Grammar
      • đŸ—ī¸Integration Guidelines
      • 🌊DVR Workflows
  • SDK Tutorial
    • Typescript
      • Running Code
      • Code Snippet
      • Directory Structure
    • Rust
      • Running Code
      • Code Snippet
      • Directory Structure
  • API Reference
    • Typescript
      • Classes
        • Class: DvrModuleClient
      • Functions
        • Functions: ffiHelper
        • Functions: jwtHelper
        • Functions: publicKeyOptionUtils
      • Type Aliases
        • Types
        • Types: ffiType
      • Interfaces
        • Interfaces
      • Constants
        • Constants
        • Enums
      • Errors
    • Rust
      • Building Rust doc
    • RESTful API
      • Overview
      • Endpoints
        • Generate Proof
      • Utilities
        • Generate Key Pair
        • Sign User Data and DVR
        • Encrypt User Data and DVR
      • Errors
  • Glossary
    • DVR
    • User Data
    • ZKP
Powered by GitBook
On this page
Export as PDF
  1. API Reference
  2. RESTful API

Errors

The zkPass RESTful API strives to provide a smooth user experience, but occasionally errors may occur. This section equips you with knowledge about potential error responses you might encounter.

Error Response

{
    "status": [http_status_code],
    "status_code": [status_code],
    "status_text": [error_message]
}

HTTP Status Code
Status Code
Error Message
Description

400

INVALID_PARAMS

Invalid parameter(s).

The provided parameters don't meet the required format or validation rules for the app input

400

INVALID_PARAMS

Error serializing parameters

Our system failed to convert the provided parameters into the required format

404

INVALID_URL

Invalid URL

The requested privacy app endpoint or resource was not found in our system

500

ERROR_LOADING_APP

Something went wrong. Contact the administrator if the error persists

Our system failed to initialize or load the requested privacy app

500

ERROR_LOADING_INSTANCE

Something went wrong. Contact the administrator if the error persists

Our system failed to create a new instance of the privacy app

500

CUSTOM_ERROR

[Custom message]

A specific error occurred that requires custom handling (message varies)

500

MISSING_APPS_CONFIG

Something went wrong. Contact the administrator if the error persists

The required configuration for privacy apps is not found or inaccessible

500

ERROR_LOCKING_SOCKET

Something went wrong. Contact the administrator if the error persists

Our system failed to establish exclusive access to the communication socket

500

ERROR_SENDING_TO_SOCKET

Something went wrong. Contact the administrator if the error persistsrver is not ready yet, please try again later

Our system failed to send data through the communication socket

500

ERROR_RECEIVING_FROM_SOCKET

Something went wrong. Contact the administrator if the error persists

Our system failed to receive data from the communication socket

500

ERROR_DESERIALIZING

Something went wrong. Contact the administrator if the error persists

Our system failed to parse the output data from the privacy app

PreviousEncrypt User Data and DVRNextDVR

Last updated 6 months ago