18 references to BadRequest
System (7)
net\System\Net\_Connection.cs (2)
2701
if (m_ResponseData.m_StatusCode == HttpStatusCode.Continue || m_ResponseData.m_StatusCode == HttpStatusCode.
BadRequest
|| isUnknownInterimResponse) {
2706
if (m_ResponseData.m_StatusCode == HttpStatusCode.
BadRequest
) {
net\System\Net\HttpListener.cs (4)
1242
SendError(requestMemory.RequestBlob->RequestId, HttpStatusCode.
BadRequest
, null);
1646
httpError = HttpStatusCode.
BadRequest
;
1762
httpError = HttpStatusCode.
BadRequest
;
2526
return HttpStatusCode.
BadRequest
;
net\System\Net\HttpWebRequest.cs (1)
5694
if (ResponseStatusCode == HttpStatusCode.
BadRequest
&& this.SendChunked
System.ServiceModel (7)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (1)
208
if (webResponse.StatusCode == HttpStatusCode.
BadRequest
)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3554
if (response.StatusCode == HttpStatusCode.
BadRequest
)
System\ServiceModel\Channels\HttpChannelListener.cs (4)
1149
HttpStatusCode statusCode = HttpStatusCode.
BadRequest
;
1168
context.SendResponseAndClose(HttpStatusCode.
BadRequest
);
1292
this.context.SendResponseAndClose(HttpStatusCode.
BadRequest
, SR.GetString(SR.WebSocketEndpointOnlySupportWebSocketError));
1298
this.context.SendResponseAndClose(HttpStatusCode.
BadRequest
, SR.GetString(SR.WebSocketEndpointDoesNotSupportWebSocketError));
System\ServiceModel\Channels\WebSocketConnectionHandler.cs (1)
44
HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.
BadRequest
);
System.ServiceModel.Web (2)
System\ServiceModel\Dispatcher\WebErrorHandler.cs (2)
127
WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.
BadRequest
;
155
responseProperty.StatusCode = HttpStatusCode.
BadRequest
;
System.Web (1)
HttpContext.cs (1)
316
throw new HttpException((int)HttpStatusCode.
BadRequest
, SR.GetString(SR.WebSockets_NotAWebSocketRequest));
System.Web.Services (1)
System\Web\Services\Protocols\SoapServerProtocol.cs (1)
943
response.StatusCode = (int) HttpStatusCode.
BadRequest
;