Search in sources :

Example 1 with ErrorScimType

use of io.jans.scim.model.scim2.ErrorScimType 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();
}
Also used : ErrorResponse(io.jans.scim.model.scim2.ErrorResponse)

Aggregations

ErrorResponse (io.jans.scim.model.scim2.ErrorResponse)1