feat(backend): Exception voor HTTP-foutcodes

This commit is contained in:
Gerald Schmittinger 2025-03-31 16:25:32 +02:00
parent 5cfabb3518
commit 8e56d68793

View file

@ -0,0 +1,7 @@
import type {AxiosResponse} from "axios";
export class HttpErrorResponseException extends Error {
constructor(public response: AxiosResponse<unknown, unknown>) {
super(response.statusText);
}
}