Http error handled, more test cases