ClientChatterFailSession Method |
Send a HTTP/XXX Error Message to the Client, calling FiddlerApplication.BeforeReturningError and DoReturningError in FiddlerScript.
Note: This method does not poison the Server pipe, so if poisoning is desired, it's the caller's responsibility to do that.
Note: Because this method uses Connection: close on the returned response, it has the effect of poisoning the client pipe
Namespace: FiddlerAssembly: FiddlerCore4 (in FiddlerCore4.dll) Version: 4.6.2.0
Syntax public void FailSession(
int iError,
string sErrorStatusText,
string sErrorBody
)
Public Sub FailSession (
iError As Integer,
sErrorStatusText As String,
sErrorBody As String
)
public:
void FailSession(
int iError,
String^ sErrorStatusText,
String^ sErrorBody
)
Parameters
- iError
- Type: SystemInt32
Response code - sErrorStatusText
- Type: SystemString
Response status text - sErrorBody
- Type: SystemString
Body of the HTTP Response
See Also