should be checking to make sure the http code is valid, #93
adding tests for #93