fix initialization of http_parser for fetch - cleanup some error code