Constructor
# new BadRequestError(message, response)
Parameters:
| Name | Type | Description |
|---|---|---|
message |
string
|
Human-readable error message |
response |
any
|
Response details, received from the Horizon server |
Extends
Members
object
# response
The response sent by the Horizon server.
Properties:
| Name | Type | Attributes | Description |
|---|---|---|---|
response |
object
|
Response details, received from the Horizon server |
|
data |
HorizonApi.ErrorResponseData
|
<optional> |
The data returned by Horizon as part of the error: Error Response |
status |
number
|
<optional> |
HTTP status code describing the basic issue with a submitted transaction Standard Status Codes |
statusText |
string
|
<optional> |
A human-readable description of what the status code means: Horizon-Specific Status Codes |
url |
string
|
<optional> |
URL which can provide more information about the problem that occurred. |
- Inherited From:
Methods
# getResponse() → {any}
Returns the error response sent by the Horizon server.
Response details, received from the Horizon server.
any