diff --git a/lib/frontapp/error.rb b/lib/frontapp/error.rb index db7f2f1..05c28c3 100644 --- a/lib/frontapp/error.rb +++ b/lib/frontapp/error.rb @@ -7,6 +7,7 @@ def self.from_response(response) when 404 then NotFoundError when 409 then ConflictError when 429 then TooManyRequestsError + when 504 then GatewayTimeoutError else self end error_class.new(response) @@ -23,4 +24,5 @@ class NotFoundError < Error; end class ConflictError < Error; end class UnauthorizedError < Error; end class TooManyRequestsError < Error; end + class GatewayTimeoutError < Error; end end