start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: send_redirect Chapter 17
The LWP Library
Next: Reference: send_file_response
 

send_error

 $

c


->send_error 
( [

code

, [

msg

]] )

Returns an error response to the client. code can contain one of the error response codes; the default is 400 Bad Request . msg is a string describing the error displayed in the HTML entity body.


Previous: Reference: send_redirect Perl in a Nutshell Next: Reference: send_file_response
Reference: send_redirect Book Index Reference: send_file_response