unsigned lf = str.find('\n');
vector<string> parts = split(str.substr(0, lf), ' ', 2);
if(parts.size()<2)
- throw InvalidParameterValue("Invalid response");
+ throw invalid_argument("Response::parse");
result.http_version = parse_version(parts[0]);
result.status = static_cast<Status>(lexical_cast<unsigned>(parts[1]));