anthonator/dirigible — pull request #19 by fcbajao (2014-09-16 09:12:51+00:00)
Title: Handle Service Unavailable API Error.

We sometimes get this error:

```
Dirigible::Error:

Service Unavailable

Service Unavailable - Zero size object Reference #15.f6bc6775.1410792978.fa00cd

```
```
/gems/dirigible-1.1.1/lib/dirigible/utils.rb:16 in "handle_api_error"
/gems/dirigible-1.1.1/lib/dirigible/request.rb:39 in "request"
/gems/dirigible-1.1.1/lib/dirigible/request.rb:8 in "post"
...
```
So we thought it's better to handle 503 response with a more specific error. Much better than parsing the error message.