Skip to main content

Interface: GSwapStatusErrorOptions

What GSwapSDKError.fromStatus may be told about the HTTP answer.

Properties​

PropertyTypeDescription
body?unknownThe response body, kept as error.body (or bodyText for a string).
retryAfterMs?numberHow long the server asked to wait (Retry-After), in milliseconds.
serverMessage?stringThe server's own text, for HTTP_ERROR.params.serverMessage ('' when none).
uniqueKey?stringThe signed uniqueKey of the WRITE the answer is for; its presence makes this a write.
url?stringThe URL the request went to.
write?booleanSay it outright: true for a write (needs uniqueKey), false for a read.