Closed remacr closed 5 years ago
hi @raul-madrigal,
For the case of the NodeJS runtime, you have the value event.extensions.response
available. This is the ExpressJS response that will be used. You can use event.extensions.response.status(403);
to set the status code.
Thanks @andresmgot, I confirm that works.
The kubeless nodejs runtime is always returning HTTP code 200. Besides
context
is always empty, what is that parameter for?Expected Behavior
curl -i http://localhost/hello
, should return:Current Behavior
curl -i http://localhost/hello
, returns: