ErrorPage Method (HttpResponse, HttpStatusCode, String)

HttpServer.dll

Generate a HTTP error page (that will be added to the response body). response status code is also set.

Namespace:  HttpServer
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
protected virtual void ErrorPage(
	HttpResponse response,
	HttpStatusCode error,
	string body
)
Visual Basic (Declaration)
Protected Overridable Sub ErrorPage ( _
	response As HttpResponse, _
	error As HttpStatusCode, _
	body As String _
)
Visual C++
protected:
virtual void ErrorPage(
	HttpResponse^ response, 
	HttpStatusCode error, 
	String^ body
)

Parameters

response
Type: HttpServer..::.HttpResponse
Response that the page will be generated in.
error
Type: System.Net..::.HttpStatusCode
http error.
body
Type: System..::.String
response body contents.

See Also