Added abillity to set custom headers on error or success
400 header for all errors
Merge pull request #1 from andrewshatnyy/master

Correct headers update