In a scenario where a server is temporarily unable to handle requests, what HTTP status code should it return?
- 302
- 404
- 500
- 503
When a server is temporarily unable to handle requests due to overloading or maintenance, it should return a 503 (Service Unavailable) status code. This informs clients that the server is temporarily unable to process the request and suggests trying again later. A 404 status code indicates that the requested resource is not found, and 302 is a temporary redirect. A 500 status code is a generic server error.
Loading...
Related Quiz
- The HTTP status code _______ is commonly returned when the requested resource does not exist.
- When implementing data-driven testing for APIs, what is a key consideration for data validation?
- API automation scripts must be designed to handle _________ to ensure robustness and reliability.
- In the context of API security testing, what is the purpose of testing for rate limiting?
- _________ is a strategy in API caching that involves storing responses based on request parameters.