Represents an erroneous response to a retrieve or change set request within a batch request.

interface ErrorResponse {
    body: Record<string, any>;
    httpCode: number;
    isError: (() => this is ErrorResponse);
    isReadResponse: (() => this is ReadResponse<any>);
    isSuccess: (() => this is ReadResponse<any> | WriteResponses<any>);
    isWriteResponses: (() => this is WriteResponses<any>);
    responseType: "ErrorResponse";
}

Hierarchy

  • BatchResponseTypeGuards<any>
    • ErrorResponse

Properties

body: Record<string, any>

HTTP raw body.

httpCode: number

HTTP response status code.

isError: (() => this is ErrorResponse)
isReadResponse: (() => this is ReadResponse<any>)
isSuccess: (() => this is ReadResponse<any> | WriteResponses<any>)
isWriteResponses: (() => this is WriteResponses<any>)
responseType

Tag for identifying the type of a batch response.

Copyright Ⓒ 2024 SAP SE or an SAP affiliate company. All rights reserved.