HTTP status codes returned by DSS API node/service
Two questions:
1. Will an exception, raised during execution of API service code, always result in a response with a 500 HTTP status code? 2. Aside from that, errors can occur outside of API service code execution (e.g. service is unavailable). Is there an overview available of which situations map to which HTTP status codes?
Best Answer
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
Hi,
The API endpoints will return 200 OK for successful requests.
500 for all cases where the code fails/ throws an exception. This can't be changed or configured.
If the request is invalid, and you have a proxy/load balancer in front of your API nodes/deployments may return a 400 or HTTP status code. These can vary depending on your exact load balancer/setup.
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,125 Neuron
You should vote for this Product Idea but also read my response for a work around.