/** Specialized Error for fetch errors which include the response status and optional data */
export classFetchErrorextendsError {
constructor(response, data) {
super(`Request failed with status code ${response.status}`);
this.status = response.status;
this.data = data;
}
}