Smeltery
Get started

The basics

v0.1

Errors

Return smeltery::Error from a handler: Error::not_found(), forbidden(), unauthorized(), bad_request(msg), http(status, msg), internal(msg), validation(field, msg) (see Validation), or any error through ? (std::io::Error, serde_json::Error, Error::other(e)). The client gets an HTML error page, or {"error": "…"} when it sent Accept: application/json. Internal errors are logged; their details appear in the page only with APP_DEBUG=true. A panicking handler answers 500.

↑↓ moveEnter openEsc close