diff --git a/aiohttp/web_exceptions.py b/aiohttp/web_exceptions.py index 0a59032a63d..adc8cbb3f3c 100644 --- a/aiohttp/web_exceptions.py +++ b/aiohttp/web_exceptions.py @@ -20,6 +20,7 @@ 'HTTPNotModified', 'HTTPUseProxy', 'HTTPTemporaryRedirect', + 'HTTPPermanentRedirect', 'HTTPClientError', 'HTTPBadRequest', 'HTTPUnauthorized', @@ -171,6 +172,10 @@ class HTTPTemporaryRedirect(_HTTPMove): status_code = 307 +class HTTPPermanentRedirect(_HTTPMove): + status_code = 308 + + ############################################################ # 4xx client error ############################################################