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