my $location;
if (ref($p{'location'})) {
$location = $p{'location'}->as_string;
+ } else {
+ $location = $p{'location'};
}
$c->response->status(201);
$c->response->header('Location' => $location);
$self->status_bad_request(
$c,
- entity => {
- message => "Cannot do what you have asked!",
- }
+ message => "Cannot do what you have asked!",
);
=cut
$self->status_not_found(
$c,
- entity => {
- message => "Cannot find what you were looking for!",
- }
+ message => "Cannot find what you were looking for!",
);
=cut