https://bz.apache.org/bugzilla/show_bug.cgi?id=60362
--- Comment #76 from Michael Osipov <1983-01...@gmx.net> --- (In reply to Christopher Schultz from comment #74) > (In reply to Michael Osipov from comment #73) > > (In reply to Ralf Hauser from comment #72) > > > First, there are many error conditions for which no precise 4xx or 5xx > > > code > > > is defined. So in this way, the reason might be helpful. > > > > No, use a given status code and augment it with application/problem+json or > > similar. The Status text cannot be set via Servlet API anyway. > > https://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletResponse. > html#sendError(int,%20java.lang.String) ? No, this does not send any reason phrase. Only the HTML error page. I know, because I have rewritten the ErrorReportValve the last time. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org