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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *