I am using Jax-RS and jersey to implement a web service, I can use the Response class to send an response code to the client:
Response.status(Status.MOVED_PERMANENTLY).build();
Or I can send Response content:
Response.ok("Respose").build();
Is there a way to send an arbitrary response for an arbitrary code?
Specifically I am trying to send the authorization code in a redirect for OAuth.