Handle failed fetches a bit better #743
1 changed files with 1 additions and 1 deletions
|
@ -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] ->
|
||||
|
|
Loading…
Reference in a new issue