forked from AkkomaGang/akkoma
Handle 401s as I have observed it in the wild
This commit is contained in:
parent
f31b262aec
commit
c0532bcae0
1 changed files with 1 additions and 1 deletions
|
@ -350,7 +350,7 @@ def get_object(id) do
|
||||||
{:error, {:content_type, content_type}}
|
{:error, {:content_type, content_type}}
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
{:ok, %{status: 403}} ->
|
{:ok, %{status: code}} when code in [401, 403] ->
|
||||||
{:error, :forbidden}
|
{:error, :forbidden}
|
||||||
|
|
||||||
{:ok, %{status: code}} when code in [404, 410] ->
|
{:ok, %{status: code}} when code in [404, 410] ->
|
||||||
|
|
Loading…
Reference in a new issue