INTEGER, can be read and
set, but not
The HTTP status code of the response received from the backend.
beresp.status is used in the following code examples. Examples apply VCL to real-world use cases and can be deployed as they are, or adapted for your own service. See the full list of code examples for more inspiration.
Click RUN on a sample below to provision a Fastly service, execute the code on Fastly, and see how the function behaves.
Replace origin errors with 'safe' responses
Detect specified response statuses from backends and instead serve a precomposed error page or error content generated at the edge.
Fastly offers a myriad of different variables that you can log. See and test a large collection here.