Library referenceClasses
KrunkerHttpError
a reply with a non 2xx status; the subclasses cover the common ones
Extends
Extended by
KrunkerBadRequestErrorKrunkerUnauthorizedErrorKrunkerForbiddenErrorKrunkerNotFoundErrorKrunkerRateLimitErrorKrunkerServerError
Constructors
Constructor
new KrunkerHttpError(
status,
url,
body,
message?
): KrunkerHttpError;Parameters
| Parameter | Type |
|---|---|
status | number |
url | string |
body | unknown |
message? | string |
Returns
KrunkerHttpError
Overrides
Properties
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
body | readonly | unknown | parsed error body, or the raw text when it was no json | - |
cause? | public | unknown | - | KrunkerError.cause |
message | public | string | - | KrunkerError.message |
name | public | string | - | KrunkerError.name |
stack? | public | string | - | KrunkerError.stack |
status | readonly | number | - | - |
url | readonly | string | - | - |