From 283f5826ae59228456f4f4b5b567c85734d0a07e Mon Sep 17 00:00:00 2001 From: LaurensBartelds Date: Thu, 23 Apr 2026 14:18:54 +0200 Subject: [PATCH] fixed actions --- frontend/src/utils/api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/api.ts b/frontend/src/utils/api.ts index 7802ec7..6c26966 100644 --- a/frontend/src/utils/api.ts +++ b/frontend/src/utils/api.ts @@ -47,11 +47,14 @@ export async function apiFetch( } export class ApiError extends Error { + status: number; + constructor( - public status: number, + status: number, message: string, ) { super(message) + this.status = status this.name = 'ApiError' } }