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.js23export function use_myFunction(request) {45 let status = response.status; // 200678}
Set the response's HTTP status code
Copy Code
1// In http-functions.js23export function use_myFunction(request) {45 response.status = 200;67}