lib/deepl/requests/base.rb in deepl-rb-2.2.0 vs lib/deepl/requests/base.rb in deepl-rb-2.2.1
- old
+ new
@@ -60,9 +60,10 @@
case response.code
when '400' then raise Exceptions::BadRequest.new(request, response)
when '403' then raise Exceptions::AuthorizationFailed.new(request, response)
when '429' then raise Exceptions::LimitExceeded.new(request, response)
+ when '456' then raise Exceptions::QuotaExceeded.new(request, response)
else raise Exceptions::RequestError.new(request, response)
end
end
def path