joelmarty commented on issue #2237: web action should not return 200 status on action error URL: https://github.com/apache/incubator-openwhisk/issues/2237#issuecomment-348113404 I can report my experience rather than make a suggestion: I have a function, very simple, that returns a Promise object on execution. The promise is either rejected with the error object as argument or resolved with a simple json object. I can observe the following: - using the webaction, I get a 204 no content status and no body (obviously) when calling my web action, whether it results in an error or not (I can see in the functions monitor there's an error). - using the api gateway, I get a 200 response whether the action succeeds or not. The response object is ok on success and empty or failure (I think this is more a problem with the code) Obviously we're talking about web actions here but the behavior I observe in any case is quite discouraging to pursue any endeavor to build apis using openwhisk. If there is any way that we can control the http status code of the response, please tell me because I could find no documentation on the topic. Maybe that's the real issue here.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
