diff options
author | Yawning Angel <yawning@schwanenlied.me> | 2017-05-12 19:26:08 +0000 |
---|---|---|
committer | Yawning Angel <yawning@schwanenlied.me> | 2017-05-12 19:26:08 +0000 |
commit | bea0a22d10196e3d137e41bbed13f19d7c27e056 (patch) | |
tree | 8eef4187ae4e80b1777743697423b3a463d3298f /proposals/278-directory-compression-scheme-negotiation.txt | |
parent | 422ca3d2edace750993a45c41ece03bdb00ec6c3 (diff) | |
download | torspec-bea0a22d10196e3d137e41bbed13f19d7c27e056.tar.gz torspec-bea0a22d10196e3d137e41bbed13f19d7c27e056.zip |
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.
Diffstat (limited to 'proposals/278-directory-compression-scheme-negotiation.txt')
-rw-r--r-- | proposals/278-directory-compression-scheme-negotiation.txt | 4 |
1 files 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: |