custom error messsage not showing on dispatcher

Avatar

Avatar

anelem1760873

Avatar

anelem1760873

anelem1760873

26-01-2021

Hi There,

 

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);

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

anelem1760873

Avatar

anelem1760873

anelem1760873

27-01-2021

DispatcherPassError 0 Solved the issue.

Answers (1)

Answers (1)

Avatar

Avatar

ChitraMadan

MVP

Avatar

ChitraMadan

MVP

ChitraMadan
MVP

27-01-2021

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?