AstroResult

An API result that contains different values depending on whether the API call succeeded or failed.
Use the Success value to determine if the API call succeeded. If the API call failed, you can
examine the Error value to determine what went wrong.

Fields

FieldDescription
error
AstroError
optional
If the API call failed, this will contain information about the error that occurred.
success
boolean
required
read-only
True if the API call succeeded; false otherwise.
hasError
boolean
required
read-only
True if the API call failed.
statusCode
HttpStatusCode
required
The HTTP code of the response.