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
-
Method Details
-
body
- Parameters:
errorContext- Error Contextresponse- Base HTTP Response- Returns:
- The HTTP Response Body
-
contentType
String contentType()- Returns:
- The content type of the HTTP response
-