Add missing response code for http error
Merge pull request #1 from jingweno/patch-1

Add missing response code for http error