Which method is used to send an error status code along with a custom message in the response header?
- sendError()
- sendStatusCode()
- setErrorCode()
- setErrorMessage()
The sendError() method is used to send an error status code along with a custom message in the response header.
Loading...
Related Quiz
- In an MVC-based web application, where do servlets generally fit in?
- What is the main purpose of using try-catch blocks in database operations?
- _________ is a technique used to minimize the cost of repeatedly executing similar SQL queries.
- What is the purpose of the FilterConfig object in Servlet filters?
- In a case where file uploads are taking too long, what are potential causes and solutions?