Unfortunately there is no such way of protecting the QueryParams.
What you could do is to use an auxiliary method on your server side class to check their values.
@GET
@Path("/myPath")
public Response yourMethod(@QueryParam("code") long code, @QueryParam("description") String desc){
if(isParametersValid(code,desc)){
//proceed with your logic
}else{
return Response.status(Response.Status.FORBIDDEN).entity("The passed parameters are not acceptable").build();
}
}
private boolean isParametersValid(long code, String desc){
//check
}