The following code works if I hit directly on the Author instance it works but i doesn't work on the dispatcher side. the message is not shown. any advice what i could be doing wrong here.
response.getWriter().write(String.format("<div><p id='Status'>400</p><p id='Message'>%s</p></div>", msg));response.setContentType(ContentType.TEXT_HTML.getMimeType());response.setStatus(400);
DispatcherPassError 0 Solved the issue.
Hi @anelem1760873 ,
Please make sure that publisher has the same code as well.
What do you get if you try to access with the dispatcher? Can you see any error in the logs?