Skip to content

Response media type is not acceptable (not_acceptable) ​

HTTP 406Orion /v3 ProblemCode: not_acceptable
Type URI: https://orion.stellarchain.io/problems/not_acceptable

The `Accept` header does not allow `application/json`, `application/problem+json`, or `text/event-stream`.

How to Resolve not_acceptable

  1. Inspect the status (406), code (not_acceptable), and detail fields in the JSON response.
  2. For 400 validation errors (invalid_*), verify query parameters against the Endpoints Reference or Statistics Catalog (GET /v3/statistics).
  3. For 404 errors (*_not_found), confirm the resource exists on Stellar Pubnet.
  4. For 409, 429, 503, or 504 transient states, retry with exponential backoff.

Example Response & Client Handling ​

json
{
  "type": "https://orion.stellarchain.io/problems/not_acceptable",
  "title": "Response media type is not acceptable",
  "status": 406,
  "detail": "Response media type is not acceptable",
  "code": "not_acceptable"
}
typescript
const res = await fetch('https://pubnet.stellarchain.io/v3/statistics');
if (!res.ok) {
  const problem = await res.json();
  if (problem.code === 'not_acceptable') {
    console.error('Orion /v3 Problem [not_acceptable]:', problem.detail);
  }
}
bash
curl -i -s "https://pubnet.stellarchain.io/v3/statistics" \
  -H "Accept: application/json"

← Back to All 53 Orion /v3 Problem Codes

Open-Source Stellar Horizon & Orion Documentation under MIT License.