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 ReadResponseCommon<any>);
    isSuccess: (() => this is ReadResponseCommon<any> | WriteResponsesCommon<any>);
    isWriteResponses: (() => this is WriteResponsesCommon<any>);
    responseType: "ErrorResponse";


  • BatchResponseTypeGuards<any>
    • ErrorResponse


body: Record<string, any>

HTTP raw body.

httpCode: number

HTTP response status code.

isError: (() => this is ErrorResponse)

Type declaration

isReadResponse: (() => this is ReadResponseCommon<any>)

Type declaration

isSuccess: (() => this is ReadResponseCommon<any> | WriteResponsesCommon<any>)

Type declaration

isWriteResponses: (() => this is WriteResponsesCommon<any>)

Type declaration

responseType: "ErrorResponse"

Tag for identifying the type of a batch response.

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