lib/frenchy/client.rb in frenchy-0.2.7 vs lib/frenchy/client.rb in frenchy-0.2.8
- old
+ new
@@ -106,9 +106,12 @@
raise Frenchy::InvalidResponse.new(ex, reqinfo, resp)
end
when 404
# Explicitly handle not found errors
raise Frenchy::NotFound.new(nil, reqinfo, resp)
+ when 503
+ # Explicitly handle temporarily unavailable errors
+ raise Frenchy::TemporarilyUnavailable.new(nil, reqinfo, resp)
else
# All other responses are treated as a server error
raise Frenchy::ServiceUnavailable.new(nil, reqinfo, resp)
end
end