415

HTTP 415 Unsupported Media Type

4xx Client Error

  1. Home
  2. > HTTP Status Codes >
  3. > 4xx >
  4. 415
4xx Client Error RFC 7231, Section 6.5.13

What is HTTP 415 Unsupported Media Type?

The 415 (Unsupported Media Type) status code indicates that the origin server is refusing to service the request because the payload is in a format not supported by the target resource. The client should check the Content-Type header it sent and ensure it matches one of the formats the server accepts.

Common Use Cases

  • Uploading a file format the server does not accept
  • API expecting JSON but receiving XML
  • Invalid Content-Type header
Help2Code Logo
Menu