Skip to content

Error Codes

PromptJang uses standard HTTP status codes with JSON error bodies.

Error Response Format

json
{
  "detail": "Human-readable error message"
}

HTTP Status Codes

CodeMeaning
400Bad Request — invalid input, missing required fields
401Unauthorized — missing or invalid API key, invalid signature
404Not Found — resource does not exist or belongs to another org
409Conflict — resource already exists
413Payload Too Large — exceeds max payload size
422Unprocessable Entity — validation failure (SSRF, invalid URL, etc.)
429Too Many Requests — rate limit exceeded
500Internal Server Error — unexpected failure
502Bad Gateway — delivery target returned an error
504Gateway Timeout — delivery target did not respond in time

Common Error Scenarios

Invalid API Key

HTTP 401
{"detail": "Unauthorized"}

Invalid HMAC Signature

HTTP 401
{"detail": "Invalid signature"}

SSRF-Blocked URL

HTTP 422
{"detail": "URL is not allowed: private IP address"}

Payload Too Large

HTTP 413
{"detail": "Payload exceeds maximum size of 1048576 bytes"}

Event Type Validation

HTTP 400
{"detail": "Invalid event type: must be 1-128 chars, alphanumeric/dash/dot/underscore"}

Released under the MIT License.