Not acceptable
The Accept header admits none of the media types the endpoint produces, or not the one format names. Nothing was charged.
"type": "https://ohlc.io/problems/not-acceptable"
Why it happens
- An
Acceptheader such asapplication/xml, orapplication/json;q=0, on an endpoint that produces JSON. Accept: text/csvon an endpoint without theformatparameter, which produces JSON only.format=csvwithAccept: application/json, orformat=jsonwithAccept: text/csv.
How to fix it
- Omit
Accept, or sendAccept: application/json(or*/*). - For CSV, send
format=csvorAccept: text/csvon an endpoint that lists theformatparameter in the API reference.