When Things Don't Match The With Statements
with %{status_code: 200, body: body} <- HTTPoison.get!(url),
{:ok, decoded_body} <- Poison.decode(body) do
{:ok, decoded_body}
else
%{status_code: 401} ->
reauthenticate()
_ ->
log_error()
endLast updated