Hello Lauri,
Thanks for the feedback. Yes, we have this product idea in our backlog. I will help to bump up this idea to product group again. ^^
Regards,
Yutong
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Is there any way to return a custom HTTP status code from R Web Service in Azure ML?
All the examples of entry scripts in documentation return the response body from the scoring function. In Python Web Service, it is possible to return a HTTP response object with a custom status code. However, R's httr library does not seem to have any function to create response objects directly (only via HTTP method objects such as POST, which call a given URL).
I would like to implement a custom exception handling scheme in R Web Service. Is there any way to return a custom HTTP code from the entry script?
EDIT: Found this idea on the feedback forum, which suggests that the option is not available in Python Web Service either:
https://feedback.azure.com/forums/257792-machine-learning/suggestions/40122838-make-http-status-codes-controllable-from-your-scor
Hello Lauri,
Thanks for the feedback. Yes, we have this product idea in our backlog. I will help to bump up this idea to product group again. ^^
Regards,
Yutong
I found that it is possible to return "502 Replica failed" by raising an exception in the entry script. However, it would still be nice to be able to return custom status codes.
This sample shows how to return custom StatusCode (returns 200 or 500):
https://learn.microsoft.com/en-us/azure/machine-learning/how-to-deploy-advanced-entry-script#binary-data