README.md in oauth2_api_client-2.1.0 vs README.md in oauth2_api_client-3.0.0
- old
+ new
@@ -31,11 +31,14 @@
max_token_ttl: 1800 # optional
)
)
```
-Please note, `get`, `post`, `put`, etc. will raise `Oauth2ApiClient::HttpError`
-unless the response code is 2xx.
+Please note, `get`, `post`, `put`, etc. will raise
+`Oauth2ApiClient::ResponseError` unless the response code is 2xx. More
+specifically, it will e.g. raise `Oauth2ApiClient::ResponseError::NotFound` for
+a 404 status code, `Oauth2ApiClient::ResponseError::InternalServerError` for a
+500 status code, etc.
## Install
Add this line to your application's Gemfile: