Click or drag to resize

HttpServerResponseSendError(Int32, String) Method

Wraps the provided error message into an HTML document and puts the resulting document into ContentBytes. This method always sets the ResponseText to ERROR.

Namespace: Crestron.SimplSharp.Net.Http
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public void SendError(
	int aCode,
	string aMessage
)

Parameters

aCode  Int32
Int32 with HTTP response code.
aMessage  String
String to put into the response document.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also