lib/ruby-lokalise-api/error.rb in ruby-lokalise-api-4.5.0 vs lib/ruby-lokalise-api/error.rb in ruby-lokalise-api-4.5.1

- old
+ new

@@ -11,11 +11,11 @@ NotFound = Class.new(ClientError) Conflict = Class.new(ClientError) TooManyRequests = Class.new(ClientError) Forbidden = Class.new(ClientError) Locked = Class.new(ClientError) - MethodNowAllowed = Class.new(ClientError) + MethodNotAllowed = Class.new(ClientError) NotImplemented = Class.new(ServerError) BadGateway = Class.new(ServerError) ServiceUnavailable = Class.new(ServerError) GatewayTimeout = Class.new(ServerError) @@ -23,10 +23,10 @@ ERRORS = { 400 => Lokalise::Error::BadRequest, 401 => Lokalise::Error::Unauthorized, 403 => Lokalise::Error::Forbidden, 404 => Lokalise::Error::NotFound, - 405 => Lokalise::Error::MethodNowAllowed, + 405 => Lokalise::Error::MethodNotAllowed, 406 => Lokalise::Error::NotAcceptable, 409 => Lokalise::Error::Conflict, 423 => Lokalise::Error::Locked, 429 => Lokalise::Error::TooManyRequests, 500 => Lokalise::Error::ServerError,