do not write StatusText in error case

It doesn't get appended to the HTTP status line, it is part of the
body.  This results in the body not being valid JSON.

Fixes issue #13.
Merge pull request #13 from joeshaw/issue-13

Writing status text breaks JSON decoding