Better requests error checking