2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
set: 4
|
|
|
|
code: 406
|
|
|
|
title: Not Acceptable
|
2015-11-07 05:34:40 +01:00
|
|
|
references:
|
|
|
|
"Rails HTTP Status Symbol": ":not_acceptable"
|
2016-01-27 23:08:33 +01:00
|
|
|
"Go HTTP Status Constant": "http.StatusNotAcceptable"
|
2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
|
2015-11-09 02:44:05 +01:00
|
|
|
The target resource does not have a current representation that would be
|
|
|
|
acceptable to the user agent, according to the proactive negotiation header
|
|
|
|
fields received in the request<sup>[1](#ref-1)</sup>, and the server is
|
|
|
|
unwilling to supply a default representation.
|
2015-11-07 05:34:40 +01:00
|
|
|
|
|
|
|
The server SHOULD generate a payload containing a list of available
|
|
|
|
representation characteristics and corresponding resource identifiers from which
|
|
|
|
the user or user agent can choose the one most appropriate. A user agent MAY
|
|
|
|
automatically select the most appropriate choice from that list. However, this
|
|
|
|
specification does not define any standard for such automatic selection, as
|
|
|
|
described in [RFC7231 Section 6.4.1][3].
|
|
|
|
|
2015-11-09 02:44:05 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
* <span id="ref-1"><sup>1</sup> Content Negotiation
|
|
|
|
[RFC7231 Section 5.3][2]</span>
|
|
|
|
* Source: [RFC7231 Section 6.5.6][1]
|
2015-11-07 05:34:40 +01:00
|
|
|
|
|
|
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.6>
|
|
|
|
[2]: <http://tools.ietf.org/html/rfc7231#section-5.3>
|
2016-01-27 23:08:33 +01:00
|
|
|
[3]: <http://tools.ietf.org/html/rfc7231#section-6.4.1>
|