Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Tweak the errors listing
Browse files Browse the repository at this point in the history
  • Loading branch information
seven1m committed Jul 2, 2015
1 parent 4268f5b commit 456bbda
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,17 +230,17 @@ api.lists['abc123'].members['cde345'].delete

The following errors may be raised by the library, depending on the API response status code.

| HTTP Status Codes | Error Class |
| ------------------- | ----------------------------------------------------------------------------- |
| 400 | `MailChimp3::Errors::BadRequest` < `MailChimp3::Errors::ClientError` |
| 401 | `MailChimp3::Errors::Unauthorized` < `MailChimp3::Errors::ClientError` |
| 403 | `MailChimp3::Errors::Forbidden` < `MailChimp3::Errors::ClientError` |
| 404 | `MailChimp3::Errors::NotFound` < `MailChimp3::Errors::ClientError` |
| 405 | `MailChimp3::Errors::MethodNotAllowed` < `MailChimp3::Errors::ClientError` |
| 422 | `MailChimp3::Errors::UnprocessableEntity` < `MailChimp3::Errors::ClientError` |
| other 4xx errors | `MailChimp3::Errors::ClientError` |
| 500 | `MailChimp3::Errors::InternalServerError` < `MailChimp3::Errors::ServerError` |
| other 5xx errors | `MailChimp3::Errors::ServerError` |
| HTTP Status Codes | Specific Error Class | Generic Error Class |
| ------------------- | ----------------------------------------- | --------------------------------- |
| 400 | `MailChimp3::Errors::BadRequest` | `MailChimp3::Errors::ClientError` |
| 401 | `MailChimp3::Errors::Unauthorized` | `MailChimp3::Errors::ClientError` |
| 403 | `MailChimp3::Errors::Forbidden` | `MailChimp3::Errors::ClientError` |
| 404 | `MailChimp3::Errors::NotFound` | `MailChimp3::Errors::ClientError` |
| 405 | `MailChimp3::Errors::MethodNotAllowed` | `MailChimp3::Errors::ClientError` |
| 422 | `MailChimp3::Errors::UnprocessableEntity` | `MailChimp3::Errors::ClientError` |
| other 4xx errors | `MailChimp3::Errors::ClientError` | |
| 500 | `MailChimp3::Errors::InternalServerError` | `MailChimp3::Errors::ServerError` |
| other 5xx errors | `MailChimp3::Errors::ServerError` | |

The exception object has the following methods:

Expand Down

0 comments on commit 456bbda

Please sign in to comment.