diff --git a/src/api.ts b/src/api.ts index 4978f0c49..7a3b1e100 100644 --- a/src/api.ts +++ b/src/api.ts @@ -68,7 +68,7 @@ export class Request { } if (! response.ok) { - throw new ApiError("Not found", urlString); + throw new ApiError(response.statusText, urlString); } return response.json(); }