github/github-services — pull request #854 by jdpace (2014-05-14 19:17:26+00:00)
Title: Fix Asana exceptions when parsing non-existent Asana task IDs

This fixes exceptions we're seeing when we parse references to non-existent Asana task IDs. Take the following commit message:

"Merge pull request #​42. Fixes Asana #​123456789."

When we try to post to the story 42 Asana has no idea what we're talking about and responds with a `400`. Since this is a common scenario I've updated it to explicitly ignore `400` response codes.

For non-2xx status codes we were also trying to raise a configuration error with `res.message` which is undefined on `Faraday::Response`. I've updated that to try to pull the error message from the JSON body.

/cc @atmos @izuzak @kdaigle