Fix typo in error message for http factory