[6.0] f1d13df95 Document special meaning of status code also for resp.status

Reza Naghibi reza at naghibi.com
Wed May 20 13:55:08 UTC 2020


commit f1d13df953b99041e3ee6e87465038cbef1727f1
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 16a35106a..99c114f39 100644
--- a/doc/sphinx/reference/vcl_var.rst
+++ b/doc/sphinx/reference/vcl_var.rst
@@ -1099,6 +1099,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