normalize 404s

This commit is contained in:
Moon Man 2024-08-24 09:20:55 +00:00
parent eb5816c2f4
commit 4291f2d8fb
1 changed files with 4 additions and 4 deletions

View File

@ -170,7 +170,7 @@ defmodule Vonbraun.MyRouter do
conn = Plug.Conn.put_resp_content_type(conn, "application/activity+json")
send_resp(conn, 200, render_user(nickname, domain, name, summary, ""))
else
send_resp(conn, 404, "not found")
send_resp(conn, 404, "fuck off")
end
end
@ -183,7 +183,7 @@ defmodule Vonbraun.MyRouter do
conn = Plug.Conn.put_resp_content_type(conn, "application/activity+json")
send_resp(conn, 200, render_following(nickname, domain))
else
send_resp(conn, 404, "not found")
send_resp(conn, 404, "fuck off")
end
end
@ -196,7 +196,7 @@ defmodule Vonbraun.MyRouter do
conn = Plug.Conn.put_resp_content_type(conn, "application/activity+json")
send_resp(conn, 200, render_followers(nickname, domain))
else
send_resp(conn, 404, "not found")
send_resp(conn, 404, "fuck off")
end
end
@ -225,6 +225,6 @@ defmodule Vonbraun.MyRouter do
forward("/users/:user/inbox", to: InboxRouter)
match _ do
send_resp(conn, 404, "oops")
send_resp(conn, 404, "fuck off")
end
end