The type of data returned on success.
The type of data returned on success.
Optionaldata: TOptionalmessage: stringOptionalmediaType: MediaTypeOptionaldataOptionalmediaOptionalmessageStaticfailOptionalmessage: stringOptionalinit: HeadersInitStaticokOptionaldata: TOptionalinit: HeadersInit
The result of a Workers endpoint.
Param: ok
True if
status< 400Param: status
The HTTP Status of a Workers request
Param: headers
All headers that the result is to be sent with or was received with
Param: data
JSON data yielded from a request, undefined if the request was not
ok.Param: message
An error text set if the request was not
ok.Remarks
If
statusis 204datawill always be undefined.