INTEGER, can be read and
set, but not
The HTTP status code stored with the object.
Try it out
obj.status is used in the following solution recipes, which show real world use cases. Click RUN to provision a Fastly service, execute the code on Fastly, and see how the function behaves.
Add www. to apex hostname and subdomains
Detect requests that don't include a www. prefix, and redirect to the equivalent path on a hostname that starts with www., usually to make sure there's only one canonical location for your content.
No-origin RUM logging
Collect and aggregate log data submitted from browsers directly into S3 or another log store without having to handle the traffic at your origin.
User contributed notes
We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.