Interface ErrorResponseBodyProvider<T>
- Type Parameters:
T- The body type
- All Known Subinterfaces:
HtmlErrorResponseBodyProvider,JsonErrorResponseBodyProvider<T>
public interface ErrorResponseBodyProvider<T>
Provides an HTTP Response body of an error response.
- Since:
- 4.7.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescription@NonNull Tbody(@NonNull ErrorContext errorContext, @NonNull HttpResponse<?> response) @NonNull String
-
Method Details
-
body
- Parameters:
errorContext- Error Contextresponse- Base HTTP Response- Returns:
- The HTTP Response Body
-
contentType
@NonNull String contentType()- Returns:
- The content type of the HTTP response
-