Error responses; as to allow things such as redirects.
Merge pull request #25 from dirkx/805d7bb81734adc8fd36c5a27c0f667fe7a46580

Add error responses