Maru v0.10.0 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 c:Exception.exception/1
Callback implementation for c:Exception.message/1
Functions
Specs
exception(Keyword.t) :: Exception.t
Callback implementation for c:Exception.exception/1
.