Interface HtmlErrorResponseBodyProvider
- All Superinterfaces:
ErrorResponseBodyProvider<String>
@DefaultImplementation(io.micronaut.http.server.exceptions.response.DefaultHtmlErrorResponseBodyProvider.class)
public interface HtmlErrorResponseBodyProvider
extends ErrorResponseBodyProvider<String>
A
ErrorResponseBodyProvider
for HTML responses.
Responses with content type MediaType.TEXT_HTML
.- Since:
- 4.7.0
- Author:
- Sergio del Amo
-
Method Summary
Methods inherited from interface io.micronaut.http.server.exceptions.response.ErrorResponseBodyProvider
body
-
Method Details
-
contentType
- Specified by:
contentType
in interfaceErrorResponseBodyProvider<String>
- Returns:
- The content type of the HTTP response
-