ZF-3751: handle() faults from unknown methods always result in "An unknown error occured. Please try again."

Description

When handle() is called with no method at all, or an undefined method, the fault always returned is "An unknown error occured. Please try again."

This is because handle() on lines 216 to 223 always calls $this->fault(, 404).

fault() in turn on lines 442-448 determines that $exception, the first argument passed into it, is a string and not an Exception instance, and promptly throws "An unknown error occured. Please try again." out as the error.

Suggested fix: change lines 217, 220 and 223 to the format: $result = $this->fault(new Zend_Rest_Exception(, 404);

Comments

Fixed issue in trunk and added some testcases. Correct fault messages are now returned in REST response.

Changing issues in preparation for the 1.7.0 release.