lib/rmega/api_response.rb in rmega-0.2.6 vs lib/rmega/api_response.rb in rmega-0.2.7
- old
+ new
@@ -24,9 +24,12 @@
-18 => 'Resource temporarily not available, please try again later',
-19 => 'Too many connections on this resource',
-20 => 'Write failed',
-21 => 'Read failed',
-22 => 'Invalid application key; request not processed',
+ -23 => 'SSL verification failed',
+ -24 => 'Not enough quota',
+ -26 => '2FA required',
}.freeze
def initialize(http_response)
@code = http_response.code.to_i
@body = http_response.body ? http_response.body : ""