Errors

Interpret standard API error envelopes and respond correctly to validation, authentication, authorization, conflict, and quota failures.

Last verified 2026-08-02

ReportPlane APIs return JSON errors using a standard envelope:

{
  "error": true,
  "message": "human-readable explanation"
}

Successful responses use error: false and place the resource or result in data.

HTTP status guide

StatusMeaningRecommended action
400Invalid request, model, filter, or query planCorrect the request; do not blindly retry
401Authentication failedCheck or rotate the credential
403Identity is valid but policy forbids the actionReview role, resource scope, CIDR, or binding
404Route/resource unavailableCheck origin, path, ID, enabled feature, and project
409Current state conflicts with the actionRefresh state or complete the required lifecycle step
413Request exceeds a body limitReduce or split the payload
429Connection, rate, or quota limitBack off and inspect limits
500+Server or dependency failureRetry safely with bounded backoff and retain correlation context

Validation messages

Validation messages identify missing names/IDs, invalid field types, incompatible filters, unavailable model access, or malformed credentials. Treat them as part of the current API behavior, but avoid parsing arbitrary prose as a stable machine code unless a documented field provides one.

Safe retries

Retry idempotent reads and requests that the API clearly did not accept. For ingest, a 202 means the batch was accepted; resending it may create a second record unless your data model and application provide their own deduplication strategy.

Was this page helpful?Send feedback