commit bea0a22d10196e3d137e41bbed13f19d7c27e056 Author: Yawning Angel yawning@schwanenlied.me Date: Fri May 12 19:26:08 2017 +0000
Prop 278: Return a more standard HTTP status on failure.
"406 Not Acceptable" is the status code that implementations are supposed to return when a request cannot be serviced due to `Accept-*` headers. --- proposals/278-directory-compression-scheme-negotiation.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proposals/278-directory-compression-scheme-negotiation.txt b/proposals/278-directory-compression-scheme-negotiation.txt index 475e4af..64b1839 100644 --- a/proposals/278-directory-compression-scheme-negotiation.txt +++ b/proposals/278-directory-compression-scheme-negotiation.txt @@ -94,8 +94,8 @@ Target: N/A response and thus notifying the client of its decision. The "Content-Encoding" header can at most contain one supported compression scheme. If no mutual compression scheme can be negotiated - the server must respond with an HTTP error status code of 415 - "Unsupported Media Type". + the server must respond with an HTTP error status code of 406 + "Not Acceptable".
For example:
tor-commits@lists.torproject.org