serby/ctrl — pull request #126 by bengourley (2012-10-15 13:23:52+00:00)
Title: Error handling issues

There is a problem with both **st** and **send** in that instead of calling `next()` when they can't find an asset, they just jump in and send their own 404, so if you go to a path that begins with a bundle's staticRoute (i.e. main -> `/main/sdgdfg/`) you get the plain text 404.

Nice error pages work again with these commits for requests that don't hit the send/st middleware. The API for creating a 404 hasn't changed (not that any bundles in core were using it) `new httpErrorHandler.NotFound()`.