Exception handling: use SyncedResponseWriter to allow handlers to change header and status code