Response Object

The response object represents the HTTP response and includes key:value pairs for the status and headers. Limit body string length to 2000 characters to prevent a 500 error response. If called multiple times, the event handler will use the most recent response.

status

The status code of the HTTP response sent to the client.

// HTTP/1.1 200
response.status;
// => 200