Skip to main content

internal_error

Function internal_error 

Source
pub fn internal_error() -> HttpResponse
Expand description

The canned 500 a request gets when its handler fails (a runtime error on the interpreter tier, a panic on the AOT tier) — shared by both tiers. The failure detail is deliberately NOT on the wire (it goes to stderr): status 500, text/plain, body internal error.