unsupported_media_type
HTTP 415 Request body must be application/json
What happened
The request has a body, but its Content-Type is not application/json - most often a form-encoded body produced by an HTTP client's default form helper.
What to do
Set Content-Type: application/json and send the body as a JSON object. Requests that carry no body at all are unaffected.
Retrying
Fix the request and send it again.
How it arrives
{
"type": "https://docs.fiberax.com/errors/unsupported_media_type",
"title": "Request body must be application/json",
"status": 415,
"code": "unsupported_media_type",
"request_id": "a277dcd1ca652c65"
}
Branch your code on code, never on the wording of title.