Client asks "/game"
page.
Server doesn't have that page and drops NotFoundException: HTTP 404 Not Found
.
How to catch(?) that exception and change for, example, 401?
Client asks "/game"
page.
Server doesn't have that page and drops NotFoundException: HTTP 404 Not Found
.
How to catch(?) that exception and change for, example, 401?
I think you can refer to the answer to this question:
http://stackoverflow.com/questions/583973/jax-rs-jersey-how-to-customize-error-handling
Thanks