fix sse error handling if shop api error part 3

This commit is contained in:
team2
2026-04-25 20:49:45 +02:00
parent 2044a465ad
commit d13e5537ed
6 changed files with 112 additions and 12 deletions

View File

@@ -42,6 +42,10 @@ final class StoreApiException extends RuntimeException
public function isSystemFailure(): bool
{
return $this->serverFailure || $this->utf8Failure;
if ($this->serverFailure || $this->utf8Failure) {
return true;
}
return $this->statusCode === 401 || $this->statusCode === 403;
}
}