fix HTTPResponse creation