low

415 Unsupported Media Type

The server refuses the request because the Content-Type is not supported.

Common Causes

  1. 1Missing Content-Type header
  2. 2Sending form data when API expects JSON
  3. 3Sending JSON when API expects multipart

How to Fix

Set correct Content-Type

// For JSON:
fetch('/api', {
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify(data),
});

// For form data:
const form = new FormData();
fetch('/api/upload', { body: form }); // Content-Type auto-set

Match Content-Type to the actual body format.

How ObserveOne Helps

ObserveOne validates Content-Type headers across your API endpoints.

Start Monitoring Free

Related Errors