Update Client to handle 400 responses from the controller

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #12 from flynn/client-400-errors

Update Client to handle 400 responses from the controller