AngularTS
    Preparing search index...

    Interface HttpResponse<T>

    Response object used to resolve HttpPromise.

    interface HttpResponse<T> {
        config: RequestConfig;
        data: T;
        headers: HttpHeadersGetter;
        status: number;
        statusText: string;
        xhrStatus: HttpResponseStatus;
    }

    Type Parameters

    • T
    Index

    Properties

    config: RequestConfig

    Request configuration that produced this response.

    data: T

    Parsed response body.

    Lazy response header reader.

    status: number

    Numeric HTTP status code. Non-2xx statuses reject the promise.

    statusText: string

    Native status text such as OK or Not Found.

    xhrStatus: HttpResponseStatus

    Transport completion status. Useful for distinguishing timeout, abort, and network errors.