On Mon, 24 Feb 2014 17:41:54 GMT, Sönke Ludwig wrote:

No, a missing body would mean that a 404 is sent. But I guess we could make an exception and call the error handler with the existing status code for !res.headerWritten && res.satusCode >= 400. Does that sound sane?

Maybe it is better to define extra flag for that and provide a small helper similar to errorOut that both changes status code and sets "error" flag? So that preserving original rendering becomes possible.

But I on pure theory field right now, you'd better ask extrawurst or other guys who actually do projects with vibe.d right here and now :)

Also I wonder what can be done with REST & Co to provide some alternative to exceptions while still preserving the API.