HTTP 415 Unsupported Media Type vs 507 Insufficient Storage
HTTP 415 (Unsupported Media Type) is a 4xx Client Error response, while 507 (Insufficient Storage) is a 5xx Server Error response. 415 indicates that the server refuses to accept the request because the Content-Type is not supported. In contrast, 507 means that the server is unable to store the representation needed to complete the request (WebDAV).
Description
The server refuses to accept the request because the Content-Type is not supported.
When You See It
When sending JSON to an endpoint that only accepts XML, or missing the Content-Type header.
How to Fix
Set the correct Content-Type header matching the data format you're sending.
Description
The server is unable to store the representation needed to complete the request (WebDAV).
When You See It
When the server runs out of disk space during WebDAV operations.
How to Fix
Free up disk space on the server or increase storage capacity.
Key Differences
415 is a 4xx Client Error response, while 507 is a 5xx Server Error response.
HTTP 415: The server refuses to accept the request because the Content-Type is not supported.
HTTP 507: The server is unable to store the representation needed to complete the request (WebDAV).
You encounter 415 when when sending JSON to an endpoint that only accepts XML, or missing the Content-Type header.
You encounter 507 when when the server runs out of disk space during WebDAV operations.
When to Use Which
For 415 (Unsupported Media Type): Set the correct Content-Type header matching the data format you're sending. For 507 (Insufficient Storage): Free up disk space on the server or increase storage capacity.