Download lib/abzu_ide_web/controllers/error_json.ex from Snapkitty/abzu-sovereign-ide: direct link, hf CLI and curl.
- Browser
- Download file 644 Bytes
-
https://huggingface.co/Snapkitty/abzu-sovereign-ide/resolve/main/lib/abzu_ide_web/controllers/error_json.ex
- Command line
-
hf download hf://Snapkitty/abzu-sovereign-ide/lib/abzu_ide_web/controllers/error_json.ex
-
curl -L -o error_json.ex https://huggingface.co/Snapkitty/abzu-sovereign-ide/resolve/main/lib/abzu_ide_web/controllers/error_json.ex
644 Bytes
| defmodule AbzuIdeWeb.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 | |