-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Description
When using REST, you would like to get the return status codes right. But if I give a 404 when an object isn't found
$this->getResponse()->setStatusCode(\Zend\Http\PhpEnvironment\Response::STATUS_CODE_404);I get this data returned as well:
message: "Page not found.",
reason: "error-controller-cannot-dispatch",
controller: "tld",
controller_class: null
Is there another way I should invoke the status codes?