@Override
    protected EngineErrorResponse createErrorResponse(Throwable error, String message, int statusCode) {
        EngineErrorResponse response = super.createErrorResponse(error, message, statusCode);
        response.setTrace(error);
        return response;
    }
@see io.apiman.gateway.engine.impl.DefaultPolicyErrorWriter#createErrorResponse(java.lang.Throwable)
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/TracePolicyErrorWriter.java