Snippets tagged “jax-rs”
1 snippet uses this tag.
- JAX-RS — How to return JSON and HTTP status code together?Java
In JAX-RS, you can use the Response class from the javax.ws.rs.core package to return a JSON response and an HTTP status code together. Here's an example of how to do this: