RENDER(Request& context) { String mode = context.get["mode"]; if(mode == "exception") throw std::runtime_error("Intentional test exception from /test/error-reporting.uce"); if(mode == "abort") raise(SIGABRT); if(mode == "segfault") raise(SIGSEGV); <>

UCE Test: Error reporting

These actions intentionally trigger failures so you can verify that UCE returns a usable `500` response instead of dropping the upstream connection.

}