415 Unsupported Media Type

4xx Client Error. The server refuses the request because the payload format (Content-Type) isn't supported.

4xx Client Error

What it means

The server refuses the request because the payload format (Content-Type) isn't supported.

Common causes

Sending XML to an endpoint that expects JSON, or omitting/mismatching the Content-Type header.

How to fix it

Set the correct Content-Type header (e.g. application/json) matching the format of your request body.

Frequently asked questions

What does HTTP 415 mean?

The server refuses the request because the payload format (Content-Type) isn't supported.

What causes a 415 Unsupported Media Type?

Sending XML to an endpoint that expects JSON, or omitting/mismatching the Content-Type header.

How do I fix a 415 error?

Set the correct Content-Type header (e.g. application/json) matching the format of your request body.

Other 4xx Client Error codes