error

external fun error(): Response(source)

The error() static method of the Response interface returns a new Response object associated with a network error.

MDN Reference