Packages

Fast. Reusable. Quenya framework helps you generate and build OpenAPIv3 compatible API apps easily from a spec. It greatly reduced the time to build APIs from ideation to production.

Current section

Files

Jump to
quenya lib plugs errors.ex
Raw

lib/plugs/errors.ex

defmodule Quenya.Plug.UnauthenticatedError do
@moduledoc """
The request will not be processed due to unauthenticated.
"""
defexception message: "unauthenticated", plug_status: 401
end
defmodule Quenya.Plug.UnauthorizedError do
@moduledoc """
The request will not be processed due to unauthorized.
"""
defexception message: "unauthorized", plug_status: 403
end