use of org.keycloak.representations.idm.ErrorRepresentation in project keycloak by keycloak.
the class ErrorResponse method error.
public static Response error(String message, Object[] params, Response.Status status) {
ErrorRepresentation error = new ErrorRepresentation();
error.setErrorMessage(message);
error.setParams(params);
return Response.status(status).entity(error).type(MediaType.APPLICATION_JSON).build();
}
Aggregations