Maru v0.12.0 Maru.Exceptions.NotFound exception View Source
Raised when request path don’t match any router. Catch this exception and return 404 like this:
rescue_from Maru.Exceptions.NotFound do
conn
|> put_status(404)
|> text("Not Found")
end
Link to this section Summary
Functions
Callback implementation for Exception.exception/1
Callback implementation for Exception.message/1
Link to this section Functions
Callback implementation for Exception.exception/1
.
Callback implementation for Exception.message/1
.