In our last example, we used Zend_Rest_Route and Zend_Rest_Controller to demonstrate how to map requests to controller actions. We also used the response object to send text content in the HTTP response. In this article let us send appropriate HTTP response codes using the response object.
He gives examples for some of the more common HTTP codes like 200, 201 204, 404 and 503. The code you'd use to handle the requests is included as methods to put into your controller for viewing, deleting and a bit of error handling.