diff --git a/scripts/utils.js b/scripts/utils.js index 59dddeb..e501822 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -138,15 +138,9 @@ export async function requestAPI (path, method, body = null) { async function request (url, content) { let response = await fetch(url, content) .then((response) => { - if (!response.ok) { - throw new ResponseError(`recieved response status code ${response.status}`); - } return response; }) .catch((error) => { - if (error instanceof ResponseError) { - throw error; - } throw new NetworkError(error); });