Foutcode
unsupported_media_type
This endpoint does not accept the content type of the body.
Over deze code
- HTTP-status
- 415
- Komt voor in
- Consumer API
- Reporting API
- Portaal
- Groep
- Elk verzoek
Wat je kunt doen
Pas het verzoek aan. Het veld detail zegt wat er niet klopte; bij ongeldige velden noemt errors elk veld.
Hetzelfde verzoek ongewijzigd opnieuw sturen geeft dezelfde fout.
Zo ziet de foutmelding eruit
type is het adres van deze pagina; code is het laatste deel ervan. Bouw je foutafhandeling op code, niet op title of detail. Wat elk veld betekent, staat in het overzicht.
{
"type": "https://openbrandstof.nl/problems/unsupported_media_type",
"title": "…",
"status": 415,
"detail": "…",
"code": "unsupported_media_type",
"instance": "…",
"requestId": "0193a5b2-7c41-7e0a-9d3f-2b6c8e1f4a57"
}