Name
send_status_line
Synopsis
$c
->send_status_line ( [code
, [msg
, [proto
]]] )
Sends the status line composed of the given
arguments back to the client. If the arguments are given, the
default status line is sent as HTTP/1.1 200 OK
. The arguments
are:
code
The numeric code indicating the status of the request, e.g., 200 for an OK request or 404 for a request for a resource that doesn’t exist
msg
A short string describing the status code
proto
A string indicating the protocol and version number used by the server, e.g., HTTP/1.1.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.