🟧GetStatusDescription
This function returns the name of the request (e.g., 200 -> "OK") and the description of the request (e.g., 200 -> "The resource has been obtained").
http.GetStatusDescription( number code ) -> string/nil, string/nil
Usage Example
local msg, desc = http.GetStatusDescription( 200 )
print( msg, desc )
-- OK The resource has been obtained
print( http.GetStatusDescription( 499 ) )
-- nil
Last updated
Was this helpful?