Trying to change http status code from an openWhisk web action through api connect
here's my openWhisk action :
function main() {
return {
statusCode: 400
}
}
and connected to an api endpoint /secure
so hitting /secure always returns a 200 instead of 400 and the action's output is added to the response payload.
what could I've done wrong?