HttpSetResponseCode: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 15: | Line 15: | ||
==Example== | ==Example== | ||
<section name="Server/HTTP" class="http" show="true"> | |||
Incomplete. | |||
</section> | |||
[[Category:Needs Example]] | [[Category:Needs Example]] | ||
==See Also== | ==See Also== | ||
{{HTTP functions}} | {{HTTP functions}} |
Revision as of 17:03, 27 October 2007
This function sets the HTTP status code that will be sent for the current HTML page.
Syntax
bool httpSetResponseCode ( int code )
Required Arguments
- code: the HTTP status code to be set.
Returns
Returns true if the code was set successfully, false otherwise.
Example
Click to collapse [-]
Server/HTTPIncomplete.
See Also
These functions can only be used from within lua blocks in HTML pages hosted by the server
- httpClear
- httpRequestLogin
- httpSetResponseCode
- httpSetResponseCookie
- httpSetResponseHeader
- httpWrite