Search in sources :

Example 26 with ErrorResponse

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

Aggregations

ErrorResponse (io.confluent.kafkarest.exceptions.v3.ErrorResponse)23 Test (org.junit.jupiter.api.Test)23 ProduceResponse (io.confluent.kafkarest.entities.v3.ProduceResponse)21 Response (javax.ws.rs.core.Response)20 ByteString (com.google.protobuf.ByteString)19 ProduceRequest (io.confluent.kafkarest.entities.v3.ProduceRequest)8 RequestRateLimiter (io.confluent.kafkarest.ratelimit.RequestRateLimiter)3 ChunkedOutputFactory (io.confluent.kafkarest.response.ChunkedOutputFactory)3 FakeAsyncResponse (io.confluent.kafkarest.response.FakeAsyncResponse)3 ResultOrError (io.confluent.kafkarest.response.StreamingResponse.ResultOrError)3 Properties (java.util.Properties)3 RateLimitExceededException (io.confluent.kafkarest.ratelimit.RateLimitExceededException)2 ArrayList (java.util.ArrayList)2 ErrorResponse (org.gluu.oxtrust.model.scim2.ErrorResponse)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ProtobufSchema (io.confluent.kafka.schemaregistry.protobuf.ProtobufSchema)1 ErrorResponse (io.jans.scim.model.scim2.ErrorResponse)1