Fakultas Ilmu Komputer UI

Commit d65d4c4e authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

add error view for bad request

parent 34d1a62f
......@@ -28,4 +28,10 @@ defmodule DiskuyWeb.FallbackController do
|> render(DiskuyWeb.ErrorView, :"401")
end
def call(conn, {:error, :bad_request}) do
conn
|> put_status(:bad_request)
|> render(DiskuyWeb.ErrorView, :"400")
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment