[master] 9494205f7 Document special meaning of status code also for resp.status
Martin Blix Grydeland
martin at varnish-software.com
Tue May 5 11:39:07 UTC 2020
commit 9494205f7379b598fbbefdb6fe853e7dcce7bba6
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Tue Apr 28 13:03:48 2020 +0200
Document special meaning of status code also for resp.status
Copy paste the text from beresp.status to resp.status about the special
handling of status codes.
diff --git a/doc/sphinx/reference/vcl_var.rst b/doc/sphinx/reference/vcl_var.rst
index 306f82eee..300ea0a22 100644
--- a/doc/sphinx/reference/vcl_var.rst
+++ b/doc/sphinx/reference/vcl_var.rst
@@ -1186,6 +1186,10 @@ resp.status
Assigning a HTTP standardized code to resp.status will also
set resp.reason to the corresponding status message.
+ Status codes on the form XXYZZ can be set where
+ XXYZZ is less than 65536 and Y is [1...9].
+ Only YZZ will be sent back to clients.
+
resp.status 200 will get changed into 304 by core code after
a return(deliver) from vcl_deliver for conditional requests
to cached content if validation succeeds.
More information about the varnish-commit
mailing list