Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Vaadin - Handling with Http status codes

Nazar Medeiros
6 years ago Sep 29, 2016 8:56am
Tobias Demuth
6 years ago Oct 02, 2016 10:23pm

Should be possible by registering a new ErrorHandler (https://vaadin.com/docs/-/part/framework/application/application-errors.html#application.errors.unchecked-exceptions), getting the current VaadinResponse via VaadinService.getCurrentResponse() and then calling VaadinResponse#sendError(int, String).