unsupported_media_type
Unsupported Content-Type. The Content-Type of the request is not one this endpoint accepts.
- HTTP status:
415 Unsupported Media Type - CLI exit code:
2(the request or file is not valid) - Retry: not as it is; the same request will fail the same way until the cause is fixed
How to fix it
Section titled “How to fix it”Send Content-Type: application/json.
What the response looks like
Section titled “What the response looks like”{ "type": "https://guv.dev/errors/unsupported_media_type", "title": "Unsupported Content-Type", "status": 415, "code": "unsupported_media_type", "detail": "The `Content-Type` of the request is not one this endpoint accepts.", "fix": "Send Content-Type: application/json.", "docs_url": "https://guv.dev/errors/unsupported_media_type", "request_id": "req_01jbx2m9k7q4r8t5v6w3y0z1rq"}The code field is stable: match on it, not on title or detail, which may be reworded.