Returning rc.NOT_FOUND from a handler's read() does not result in a 404

Issue #67 invalid
Anonymous created an issue

I have a handler which is passed an ID but in the case where it's not a valid ID it should result in a 404. It seems from the API that the way to do this would be to return rc.NOT_FOUND but that results in a result code of 200 with the contents showing an XML version of the rc.NOT_FOUND object.

Is there a different way to set the result code from read()?