Interface ErrorResponseProcessor<T>

    • Method Detail

      • processResponse

        @NonNull
        io.micronaut.http.MutableHttpResponse<T> processResponse​(@NonNull
                                                                 ErrorContext errorContext,
                                                                 @NonNull
                                                                 io.micronaut.http.MutableHttpResponse<?> baseResponse)
        Modifies the http response representing the error. Callers of this method should return the response that was passed in baseResponse parameter, however that isn't required. Error response processors should not set the body or content type if the request method is HEAD.
        Parameters:
        errorContext - The error context
        baseResponse - The base response to retrieve information or mutate
        Returns:
        An error response