Skip to content

Commit

Permalink
Set the HTTP status correctly via the new API.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Nov 1, 2011
1 parent 38d35e2 commit 9a4703e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebGUI/Asset/Wobject/Thingy.pm
Expand Up @@ -3012,7 +3012,7 @@ sub www_editThingDataSaveViaAjax {
return JSON->new->encode({message => $i18n->get("has entered max per user message")});
}
if($thingDataId eq 'new' && $self->hasEnteredMaxEntries($thingId)){
$session->http->setStatus("400", "Bad Request");
$session->response->status("400");
return JSON->new->encode({message => $i18n->get("has entered max total message")});
}

Expand Down

0 comments on commit 9a4703e

Please sign in to comment.