added more  http error code support