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