The ________ method of the HttpServletResponse object is used to send an error response to the client with a status code and a descriptive message.
- errorResponse()
- sendError()
- sendResponse()
- writeError()
The sendError() method of the HttpServletResponse object is used to send an error response to the client with a specified status code and a descriptive message.
Loading...
Related Quiz
- What does thread-safe mean in the context of servlets?
- The concept of ________ allows multiple users to make changes to the database without affecting each other.
- In the filter chain, the __________ method is used to perform the actual filtering.
- If an application needs to clean up resources when the application is shut down, which listener should be used?
- To listen for events related to a specific attribute in a session, implement the interface ___________.