I have a GWT 2.4 web-application. I want to handle the HTTP error-codes in the following way: depending on the code send user to different GWT pages. Yes, I understand that GWT has only one dynamical page, so I want to use Places for this. I added the following lines to web.xml:
<error-page>
<error-code>404</error-code>
<location>/index.html#error:404</location>
</error-page>
I thought this should redirect user to my GWT app and show a view that corresponds to that place. But this doesn't work at all. A blank page is shown when I try to access resource which doesn't exist.
A place itself exists and can be reached via the ../index.html#error:404 URL without problems. So the problem is on the server side. May be the server cannot redirect me to the page which doesn't exist in fact?
So, how can I handle 404 and other errors with GWT?