Handle 401s as I have observed it in the wild

This commit is contained in:
Mark Felder 2023-12-28 23:09:33 -05:00 committed by Floatingghost
parent f31b262aec
commit c0532bcae0

View file

@ -350,7 +350,7 @@ def get_object(id) do
{:error, {:content_type, content_type}}
end
else
{:ok, %{status: 403}} ->
{:ok, %{status: code}} when code in [401, 403] ->
{:error, :forbidden}
{:ok, %{status: code}} when code in [404, 410] ->