HttpServerResponseSendErrorWithCustomBody Method |
Allows to set custom error messages. Unlike the SendError methods, this method doesn't wrap the provided text into any HTML tags.
The provided response body is used as is.
Namespace: Crestron.SimplSharp.Net.HttpAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic void SendErrorWithCustomBody(
int aCode,
string aResponseText,
string aBody
)
Parameters
- aCode Int32
- Int32 with HTTP response code.
- aResponseText String
- String with HTTP response text.
- aBody String
- String to use as response document.
Version Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also