Skip to Content
Error Codes

Error Codes

All API errors across Passage Connect and Passage Platform follow a consistent format.

Error response format

Regular errors return a string message:

{ "error": "Link not found" }

Validation errors include structured issue details:

{ "error": "Validation failed", "issues": [ { "path": "webhookUrl", "message": "must be a valid URL" }, { "path": "expiresIn", "message": "must be a positive integer" } ] }

Each issue includes a path (dot-separated field path) and a message describing the constraint that failed.

Common HTTP status codes

StatusDescription
400Invalid request body — missing required fields, wrong types, or failed validation
401Missing or invalid API key
404Resource not found
409Resource state conflict (e.g., re-claiming a completed link)
410Resource has expired
502Upstream service failure

Platform session errors

CodeDescription
session_expiredSession has timed out
session_terminalSession is in a terminal state (complete/failed/expired)
command_pendingA command is already in flight
Last updated on