I am looking for a way to have a custom status and error code that is outside the usual http range of error code. Something like this:
return javax.ws.rs.core.Response.status(8001).entity("Error replacing document").build();
I get: java.lang.IllegalArgumentException: Illegal status value: 8001
Any pointers on how to accomplish this?