httpSetResponseCode
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function sets the HTTP status code that will be sent for the current HTML page.
Syntax
httpSetResponseCode ( )Code Examples
server
This example displays a 'Page not found' error message and the response code 404. The location of thehttpSetResponseCodecall is unimportant - it can be placed anywhere in the document.
[html]<html><h1>Page not found!</h1><* httpSetResponseCode ( 404 ) *></html>See Also
HTTP Functions
- httpClear
- httpRequestLogin
- httpSetResponseCode
- httpSetResponseCookie
- httpSetResponseHeader
- httpWrite