UnauthorizedError Type
401/403 — missing, invalid, or insufficiently scoped credentials.
Constructors
| Constructor |
Description
|
Full Usage:
UnauthorizedError(statusCode, body)
Parameters:
int
body : string
Returns: UnauthorizedError
|
|
Inherited members
Inherited from
DataHubError
Instance members
| Instance member |
Description
|
Full Usage:
this.StatusCode
Returns: int
|
The HTTP status code returned by the DataHub.
|
Full Usage:
this.Body
Returns: string
|
The raw response body, preserved for diagnostics.
|
Static members
| Static member |
Description
|
Full Usage:
DataHubError.FromResponse(response)
Parameters:
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.
|
DataHubClient