status property

int status
final

The HTTP status code that you want CloudFront to use for the following:

  • Return in the response
  • Cache in the CloudFront edge cache, when the response was generated by a function that was triggered by an origin request event
  • Log in CloudFront Configuring and Using Access Logs

If the status value isn't between 200 and 599, CloudFront returns an error to the viewer.

Implementation

final int status;