MiddlewareResponse: {
    body?: JsonObject;
    error?: HttpErrorType;
    headers?: JsonObject<string>;
    request?: JsonObject;
    statusCode: number;
    reject(error): void;
    resolve(response): void;
}

Type declaration