alphagov/router — pull request #9 by jamiecobbett (2012-07-10 16:37:46+00:00)
Title: Don't swallow unexpected HTTP responses

Case in point: I had a typo in the URL for the router. This meant
that requests going to the router returned a 405 status, which,
were not matched in the case statement and therefore returned a nil.

Debugging then meant editing the code for the client.

You could argue that it should raise a typed error.