I was wondering on how I should go about changing the response status code using a script.
Let us say I want to reply with a code 403 or 402 or a 400, how should I do that?
I have tried to set:
event.response.code = 403;
But it seems to still send a 200 OK with a JSON
I want to change the status code in the response itself instead.