rabbah commented on issue #5039: URL: https://github.com/apache/openwhisk/issues/5039#issuecomment-754668653
The status code you return for a web action is not the same as the status code that is generated by the system and part of the response object. The latter is explained here https://github.com/apache/openwhisk/blob/b00678d30604d0ffb45792fdcd4b61714cfffd1c/docs/actions.md#understanding-the-activation-record Since your function's result is an `error` object, and the `status` string is `application error` you are correct the `statusCode` should be 1. That it's showing as 0 is actually a `wsk` CLI bug - the HTTP response is omitting this property and the `wsk` CLI is assuming it is 0. You can see this by adding `-v` to the `wsk` command and looking at the HTTP response. I have to check why the HTTP response is not include the status code though. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
