default ServiceErrorHandler asServiceErrorHandler() {
        return new ServiceErrorHandler() {
            @Override
            public @Nullable HttpResponse onServiceException(ServiceRequestContext ctx, Throwable cause) {
                return ServerErrorHandler.this.onServiceException(ctx, cause);
            }

            @Override
            public @Nullable AggregatedHttpResponse renderStatus(ServiceRequestContext ctx,
                                                                 RequestHeaders headers,
                                                                 HttpStatus status,
                                                                 @Nullable String description,
                                                                 @Nullable Throwable cause) {
                return ServerErrorHandler.this.renderStatus(ctx, ctx.config(), headers,
                                                            status, description, cause);
            }
        };
    }
Transforms this {@link ServerErrorHandler} into a {@link ServiceErrorHandler}.
core/src/main/java/com/linecorp/armeria/server/ServerErrorHandler.java