HttpSetResponseCode: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(New page: __NOTOC__ {{HTTP function}} This function sets the HTTP status code that will be sent for the current HTML page. ==Syntax== <syntaxhighlight lang="lua"> bool httpSetResponseCode ( int code ) </syntaxhighlight> ==Re...)
 
mNo edit summary
Line 9: Line 9:


==Required Arguments==
==Required Arguments==
'''code:''' the HTTP status code to be set.
*'''code:''' the HTTP status code to be set.


===Returns===
===Returns===

Revision as of 16: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

See Also

These functions can only be used from within lua blocks in HTML pages hosted by the server