Maru v0.10.5 Maru.Exceptions.NotFound exception
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
Summary
Functions
Callback implementation for Exception.exception/1
Callback implementation for Exception.message/1
Functions
Callback implementation for Exception.exception/1
.
Callback implementation for Exception.message/1
.