Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Added on September 2, 2024 1:10PM
Likes: 0
Replies: 2
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?
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.
You should vote for this Product Idea but also read my response for a work around.