Trot.NotFound
Plug for inserting a 404 not found response.
Use this module or plug it in at the end of the plug system. If the connection has not been sent yet, it will be set to 404 with a not found message.
Example
defmodule WhereIsIt.Router do
use Trot.Router
get "/real", do: :ok
use Trot.NotFound
end
Summary↑
call(conn, opts) | |
init(opts) | |
match(conn, opts) | |
not_found(conn) | Takes a Plug.Conn and sends a “not found” message to the requestor |
not_found(conn, opts) |
Functions
Takes a Plug.Conn and sends a “not found” message to the requestor.