415 Unsupported Media Type

The HTTP status meaning the server will not read the request body because it is in a format it does not accept.

In more detail

It tells the client to change its encoding, not its data. For example, a form-encoded body sent to an endpoint that only reads JSON.

Example

In the APIs course: The course service answers 415 to a form-encoded body when it expects JSON.

Related terms

Taught in

References