use of io.jans.scim.model.scim2.ErrorResponse in project jans by JanssenProject.
the class BaseScimWebService method getErrorResponse.
public static Response getErrorResponse(int statusCode, ErrorScimType scimType, String detail) {
ErrorResponse errorResponse = new ErrorResponse();
errorResponse.setStatus(String.valueOf(statusCode));
errorResponse.setScimType(scimType);
errorResponse.setDetail(detail);
return Response.status(statusCode).entity(errorResponse).build();
}
Aggregations