projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'user-updates' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
controllers
/
fallback_controller.ex
diff --git
a/lib/pleroma/web/mastodon_api/controllers/fallback_controller.ex
b/lib/pleroma/web/mastodon_api/controllers/fallback_controller.ex
index 0a257f60490ae5945e66f28799de76bd8fb1fc27..8af557b61af431518417734a7e5488f05fdf1afd 100644
(file)
--- a/
lib/pleroma/web/mastodon_api/controllers/fallback_controller.ex
+++ b/
lib/pleroma/web/mastodon_api/controllers/fallback_controller.ex
@@
-20,6
+20,10
@@
defmodule Pleroma.Web.MastodonAPI.FallbackController do
render_error(conn, :not_found, "Record not found")
end
+ def call(conn, {:error, :forbidden}) do
+ render_error(conn, :forbidden, "Access denied")
+ end
+
def call(conn, {:error, error_message}) do
conn
|> put_status(:bad_request)