The __________ method is used to set an HTTP status code without a message.
- sendError()
- setErrorCode()
- setResponseCode()
- setStatus()
The setStatus() method is used to set the HTTP status code without providing a message.
Loading...
Related Quiz
- To ensure that database resources are always released, use the __________ block to close connections.
- How does the Servlet container typically handle concurrent requests to the same servlet?
- What is the primary advantage of using connection pooling in a web application?
- What does thread-safe mean in the context of servlets?
- How can you avoid concurrency issues in a servlet without using synchronization?