Revert "added more  http error code support"

This reverts commit c9c39f7ae8905feb9dfdcddfc70fcdd192f5fe7a.