0

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?

1 Answers1

0

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

Dakin
  • 38
  • 7
Kenny Tai Huynh
  • 1,366
  • 10
  • 21