How to protect and hide a route with 404 page?

You can set the HTTP status to be sent with the response using Plug.Conn.put_status

1 Like