Logo DataHubClient

UnauthorizedError Type

401/403 — missing, invalid, or insufficiently scoped credentials.

Constructors

Constructor Description

UnauthorizedError(statusCode, body)

Full Usage: UnauthorizedError(statusCode, body)

Parameters:
    statusCode : int
    body : string

Returns: UnauthorizedError
statusCode : int
body : string
Returns: UnauthorizedError

Inherited members

Inherited from DataHubError

Instance members

Instance member Description

this.StatusCode

Full Usage: this.StatusCode

Returns: int

The HTTP status code returned by the DataHub.

Returns: int

this.Body

Full Usage: this.Body

Returns: string

The raw response body, preserved for diagnostics.

Returns: string

Static members

Static member Description

DataHubError.FromResponse(response)

Full Usage: DataHubError.FromResponse(response)

Parameters:
    response : HttpResponse - The failed HTTP response to classify.

Returns: DataHubError An UnauthorizedError, NotFoundError, RateLimitedError, ServerError, or a plain DataHubError.

Maps an unsuccessful HttpResponse to the most specific error subclass.

response : HttpResponse

The failed HTTP response to classify.

Returns: DataHubError

An UnauthorizedError, NotFoundError, RateLimitedError, ServerError, or a plain DataHubError.

Type something to start searching.