Skip to content

Extra data when issueing Status Code #14

@redbeardmedia

Description

@redbeardmedia

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions