How can I override in Tomcat 7 the text of the HttpStatu
s.
I'm using HttpServletResponse.sendError(401, "Invalid username or Password")
, but when I'm looking at the response status in the client it goves 401 Unauthorized
.
Is there any way to override it?