[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torspec/master] Prop 278: Return a more standard HTTP status on failure.
commit bea0a22d10196e3d137e41bbed13f19d7c27e056
Author: Yawning Angel <yawning@xxxxxxxxxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits