add http errors
Merge pull request #12 from punkshui/patch-1

add http errors