Field-Viewer API

All errors

media_type.unsupported

The media type is not supported

HTTP status
415
Problem type
https://api.field-viewer.com/problems/media_type.unsupported
Catalogue
Generic (any operation)

What it means

The request body's Content-Type is not one this operation accepts.

What to do

Send Content-Type: application/json.

Example response

Errors use RFC 9457 application/problem+json. Match on code (stable forever), not on title or detail, which are localised.

HTTP/1.1 415
Content-Type: application/problem+json

{
  "type": "https://api.field-viewer.com/problems/media_type.unsupported",
  "title": "The media type is not supported",
  "status": 415,
  "detail": "The media type is not supported",
  "instance": "/v1/context",
  "code": "media_type.unsupported",
  "requestId": "req_01jcz3k8m4f6a9t2x7v5q0wbne"
}

Returned by

No operation declares this code in its contract. The API can return it for any request, for example from the request pipeline before an operation runs.