protected Mono < ServerResponse > renderErrorResponse ( ServerRequest request ) { boolean includeStackTrace = isIncludeStackTrace ( request , MediaType . ALL ) ; Map < String , Object > error = getErrorAttributes ( request , includeStackTrace ) ; return ServerResponse . status ( getHttpStatus ( error ) ) . contentType ( MediaType . APPLICATION_JSON_UTF8 ) . body ( BodyInserters . fromObject ( error ) ) ; }
Render the error information as a JSON payload .