Skip to content

/problems/unsupported-media-type⚓︎

Problem

This is a description of a specific error response that you can receive when using the INVERS OneAPI via REST.1

Check out our API Basics to learn more about the basic structure of all error responses and to find out how you should handle them.

{
    "type": "/problems/unsupported-media-type",
    "type_documentation": "https://developers.invers.com/problems/unsupported-media-type",
    "title": "Media type not supported.",
    "status": 415,
    "detail": "…",
    "flow_id": "af1af582-00c9-4c03-9849-4ae5b35e579a"
}

Meaning⚓︎

This problem type occurs when making a request containing a payload with an unsupported format.

Details⚓︎

  • Use the error response’s type property to handle specific errors and exception handling within your application. It’s comparable to an error code.
  • The detail property contains additional, more human-readable information about the problem or error. This is explanatory text and you should not have any exception handling and error handling code depend on it, as it may change.

Detail examples⚓︎

The following examples are typical texts which you might receive in the error response’s detail property. Note that it is not a complete list of all possible cases. Therefore expect to receive error responses with a detail property value not listed below.

Example problem details⚓︎

Media type ‘text/html’ is not supported, use ‘application/json’ instead.

You have sent a request that appears to include an HTML payload. However, the requested resource requires you to send the payload formatted as JSON.

Possible solutions:

- Make sure you are indeed sending a JSON payload as per the corresponding API documentation
- Make sure the 'Content-Type' header of your request is set to 'application/json'

Further reading⚓︎


  1. The flow_id is specific to each API call, so it will be different in your case. However, type, title and status will match your actual error response if you receive the error described on this page.