public Response getResponse() {
return Response.status(status).type(MediaType.APPLICATION_JSON_TYPE).entity(getErrorResponse()).build();
}
public ErrorResponse getErrorResponse() {
ErrorResponse response = new ErrorResponse();
response.setApplicationMessage(developerMessage);
response.setConsumerMessage(errorMessage);
response.setValidationErrors(errors);
return response;
}