Return correct api error status

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-05-18 15:45:47 +02:00
parent 8ac5609c60
commit f8083a24d1
+1 -1
View File
@@ -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();
}