Skip to content
luranta/docs

Search documentation

Search pages, sections and API operations.

Errors
.md

Errors

Failed requests return RFC 9457 Problem Details with a required errors array. Successful lists stay { data, meta }.

  • Successful lists return { data, meta }.
  • Failures return application/problem+json with a required errors array. Branch on HTTP status; lists have no partial-success envelope.
  • Official SDKs throw LurantaProblemError. Read error.errors for parameter issues.

Common responses

StatusMeaningRetry
400Invalid request or pagination tokenNo
401Invalid or revoked API keyNo
403Insufficient scopeNo
402Insufficient creditAfter top-up
404Resource unavailableNo
429Organisation rate limitAfter Retry-After
503Service or usage accounting unavailableOnly when retryable

Read error.errors

import { Client, LurantaProblemError } from "@luranta/sdk"

try {
  await client.jobs.list({ locations: ["Atlantis"] })
} catch (error) {
  if (error instanceof LurantaProblemError) {
    for (const issue of error.errors) {
      console.error(issue.code, issue.message, issue.pointer)
    }
  }
}