Skip to content

Commit

Permalink
406 Not Acceptable
Browse files Browse the repository at this point in the history
  • Loading branch information
arialdomartini committed Jan 23, 2020
1 parent 0635636 commit d5cd193
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/media-types.md
Expand Up @@ -29,6 +29,8 @@ GET https://my-company.com/orders/2 HTTP/1.1
Accept: application/json,application/xml
```

It the server cannot match any of the media types, it should return `406 Not Acceptable`.

The list of default media type is available on [MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation/List_of_default_Accept_values).

Services are generally required to support at least `application/json`. All other media types are supported based on the specific business or technical needs.

0 comments on commit d5cd193

Please sign in to comment.