diff --git a/reference/network/functions/http-response-code.xml b/reference/network/functions/http-response-code.xml index b49090ecef..7d16bcbaf2 100644 --- a/reference/network/functions/http-response-code.xml +++ b/reference/network/functions/http-response-code.xml @@ -1,58 +1,113 @@ - - - - - - http_response_code - Returns the current HTTP response code - - - - &reftitle.description; - - boolhttp_response_code - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - &return.success; - - - - - - - + + + + + + http_response_code + Get or Set the HTTP response code + + + + &reftitle.description; + + inthttp_response_code + intresponse_code + + + If you pass no parameters then http_response_code will get the current status code. + If you pass a parameter it will set the response code. + + + + + + &reftitle.parameters; + + + + response_code + + + The optional response_code will set the response code. + + + + + +]]> + + + + + + + + + + + &reftitle.returnvalues; + + The current response code. By default the return value is int(200). + + + + + &reftitle.examples; + + + Examples using <function>headers_list</function> + + +]]> + + &example.outputs; + + + + + + &reftitle.seealso; + + + header + + + + + + + +