26 references to InvalidResponse
System.Net.Http (26)
System\Net\Http\DiagnosticsHelper.cs (1)
95
HttpRequestError.
InvalidResponse
=> "invalid_response",
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (3)
335
throw new HttpIOException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_chunk_header_invalid, BitConverter.ToString(currentLine.ToArray())));
389
throw new HttpIOException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_chunk_terminator_invalid, Encoding.ASCII.GetString(currentLine)));
452
throw new HttpIOException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_chunk_extension_invalid, BitConverter.ToString(lineAfterChunkSize.ToArray())));
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (2)
503
InitialSettingsReceived.TrySetException(new HttpIOException(HttpRequestError.
InvalidResponse
, SR.net_http_http2_connection_not_established, e));
505
throw new HttpIOException(HttpRequestError.
InvalidResponse
, SR.net_http_http2_connection_not_established, e);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (7)
560
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.net_http_invalid_response);
583
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.net_http_invalid_response);
631
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.net_http_invalid_response_multiple_status_codes);
638
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.net_http_invalid_response_pseudo_header_in_trailer);
701
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.net_http_invalid_response);
745
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.net_http_invalid_response);
754
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_header_name, Encoding.ASCII.GetString(name)));
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (4)
341
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.net_http_invalid_response, ex);
395
throw new HttpIOException(HttpRequestError.
InvalidResponse
, SR.net_http_invalid_response);
580
throw new HttpIOException(HttpRequestError.
InvalidResponse
, SR.net_http_invalid_response);
949
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_header_name, Encoding.ASCII.GetString(name)));
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (8)
1065
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_status_line, Encoding.ASCII.GetString(line)));
1086
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_status_line, Encoding.ASCII.GetString(line)));
1094
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_status_code, Encoding.ASCII.GetString(line.Slice(9, 3))));
1119
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_status_reason, Encoding.ASCII.GetString(reasonBytes.ToArray())), formatEx);
1125
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_status_line, Encoding.ASCII.GetString(line)));
1224
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_header_line, Encoding.ASCII.GetString(buffer.Slice(0, newLineIndex))));
1323
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_header_name, ""));
1326
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_header_name, Encoding.ASCII.GetString(name)));
System\Net\Http\SocketsHttpHandler\HttpConnectionBase.cs (1)
185
throw new HttpRequestException(HttpRequestError.
InvalidResponse
, SR.Format(SR.net_http_invalid_response_status_code, Encoding.ASCII.GetString(value)));