HTTP status codes returned by DSS API node/service

fjavanderspek
fjavanderspek Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 8 ✭✭

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
    Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
    Answer ✓

    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

Setup Info
    Tags
      Help me…