https://bz.apache.org/bugzilla/show_bug.cgi?id=60362
--- Comment #74 from Christopher Schultz <ch...@christopherschultz.net> --- (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) ? I was surprised to see that Tomcat actively strips-out the reason phrase. I had initially thought this was simply Tomcat removing reason-phrases from every response generated by Tomcat (e.g. everything coming from the DefaultServlet, various internal errors, etc.), but it's actively stripping reason phrases explicitly-set by applications. :( At any rate, this should be discussed in dev@ and not in bugzilla at this point. -- 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