/*!
 * Copyright (C) Microsoft Corporation. All rights reserved.
 */
import { SdkError } from '../errors/SdkError.js';
/** Error thrown when an HTTP request fails. */
export class HttpError extends SdkError {
    /** HTTP status code, or undefined if the request did not complete. */
    status;
    /** The original request config. */
    config;
    /** Parsed response body, if available. */
    responseData;
    /** Parsed response headers, if available. */
    responseHeaders;
    constructor(message, config, status, responseData, responseHeaders) {
        super('HTTP_REQUEST_FAILED', message);
        this.name = 'HttpError';
        this.config = config;
        this.status = status;
        this.responseData = responseData;
        this.responseHeaders = responseHeaders;
    }
}
//# sourceMappingURL=HttpTypes.js.map