Error handling in JAX-RS