Page MenuHomePhorge

default_render_error.ex
No OneTemporary

Size
225 B
Referenced Files
None
Subscribers
None

default_render_error.ex

defmodule OpenApiSpex.Plug.DefaultRenderError do
@behaviour Plug
alias Plug.Conn
@impl Plug
def init(opts), do: opts
@impl Plug
def call(conn, reason) do
conn |> Conn.send_resp(422, "#{reason}")
end
end

File Metadata

Mime Type
text/x-ruby
Expires
Sun, Nov 24, 4:56 AM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39348
Default Alt Text
default_render_error.ex (225 B)

Event Timeline