Search.../

status

Sets or gets the HTTP status code of the response.

Type:

numberRead & Write

Was this helpful?

Get the response's HTTP status code

Copy Code
1// In http-functions.js
2
3export function use_myFunction(request) {
4
5 let status = response.status; // 200
6
7
8}
Set the response's HTTP status code

Copy Code
1// In http-functions.js
2
3export function use_myFunction(request) {
4
5 response.status = 200;
6
7}