Launch offer: 50% off.Paid plans only.See pricing
Skip to content

Documentation

Reference

Error Reference

HTTP error payloads, common error codes, and remediation patterns.


Error model

Lamba endpoints use one of two patterns:

  • ProblemDetails-style payloads for API validation and access failures.
  • Plan-limit contract payload for billing and quota enforcement.

ProblemDetails shape

{
  "type": "https://api.uselamba.com/problems/authorization",
  "title": "Forbidden",
  "status": 403,
  "detail": "The current principal cannot access this resource.",
  "errorCode": "AUTHORIZATION_DENIED",
  "traceId": "00-2f7b4a..."
}

Plan limit shape (402)

{
  "error": "PLAN_LIMIT_EXCEEDED",
  "limit": "mau",
  "allowed": 5000,
  "current": 5001,
  "plan": "free",
  "message": "Plan limit exceeded. Upgrade to continue."
}

Common statuses

StatusTypical reasonWhat to do
401Invalid or missing credentialsRefresh session or re-authenticate user
403Tenant/project scope mismatch or blocked accessVerify membership, role, and tenant context
429Rate limit exceededRespect Retry-After, backoff, retry safely
402Plan limit enforcementUpgrade plan or reduce usage to within limits
5xxService-side failureRetry with jitter and include traceId in support ticket

Operational guidance

  • Always log errorCode and traceId.
  • Treat 402 as a product/billing state, not a transient transport error.
  • For 429, implement bounded retries with exponential backoff.
  • For repeated 5xx, capture request metadata and contact support.