diff --git a/homeassistant/components/http/static.py b/homeassistant/components/http/static.py index b7bb9d4f3a8..a7280fb9b2f 100644 --- a/homeassistant/components/http/static.py +++ b/homeassistant/components/http/static.py @@ -80,4 +80,4 @@ class CachingStaticResource(StaticResource): }, ) - return await super()._handle(request) + raise HTTPForbidden if filepath is None else HTTPNotFound