NAME

Apache2::REST::Response - Container for an API Response.

SYNOPSIS

... 
$resp->status(Apache2::Const::HTTP_OK) ;
$resp->message('Everything went smootly') ;
$resp->data()->{'item'} = 'This is the returned item' ;
...

new

Builds a new one.

status

Get/Sets the HTTP status of this response

message

Get/Sets a more explicit message related to the status

data

Hash of the actual data returned by the handler (see Apache2::REST::Handler ).