4xx Client error
415 Unsupported Media Type
The server doesn’t support the request body’s format.
The Content-Type header is missing or not one the endpoint accepts.
Common causes and fixes
- Send
Content-Type: application/jsonfor JSON bodies —fetchdoesn’t set it automatically. - For file uploads use
multipart/form-dataand let the browser set the boundary (don’t set the header manually).
Example response
HTTP/1.1 415 Unsupported Media Type
Date: Thu, 22 Oct 2026 08:00:00 GMT Check a URL’s status with curl -I https://example.com, which prints the status line and headers.