initial commit

This commit is contained in:
Maciej 2026-02-21 09:12:26 +02:00
commit a22ba724df
Signed by: maciej
GPG key ID: 28243AF437E32F99
47 changed files with 4251 additions and 0 deletions

View file

@ -0,0 +1,21 @@
defmodule BirdyChatWeb.ErrorJSON do
@moduledoc """
This module is invoked by your endpoint in case of errors on JSON requests.
See config/config.exs.
"""
# If you want to customize a particular status code,
# you may add your own clauses, such as:
#
# def render("500.json", _assigns) do
# %{errors: %{detail: "Internal Server Error"}}
# end
# By default, Phoenix returns the status message from
# the template name. For example, "404.json" becomes
# "Not Found".
def render(template, _assigns) do
%{errors: %{detail: Phoenix.Controller.status_message_from_template(template)}}
end
end