diff --git a/drama/routes/comments.py b/drama/routes/comments.py index b5d8220ef..17889a0a7 100644 --- a/drama/routes/comments.py +++ b/drama/routes/comments.py @@ -25,7 +25,7 @@ beams_client = PushNotifications( @auth_required def banawardcomment(comment_id, v): - if not v.banawards > 0: return render_template("errors/banaward.html", v=v) + if not v.banawards > 0: abort(402) comment = g.db.query(Comment).filter_by(id=comment_id).first() if not comment: abort(400) diff --git a/drama/routes/posts.py b/drama/routes/posts.py index 3e78fb777..c57a47dc0 100644 --- a/drama/routes/posts.py +++ b/drama/routes/posts.py @@ -49,7 +49,7 @@ def resize(): @auth_required def postbanaward(post_id, v): - if not v.banawards > 0: return render_template("errors/banaward.html", v=v) + if not v.banawards > 0: abort(402) post = g.db.query(Submission).filter_by(id=post_id).first() if not post: abort(400) diff --git a/drama/templates/errors/401.html b/drama/templates/errors/401.html index 29fdf9ac8..4b7c675a9 100644 --- a/drama/templates/errors/401.html +++ b/drama/templates/errors/401.html @@ -14,10 +14,10 @@
You need to log in if you want to get into this castle.
+What you're trying to do requires an account. I think. The original error message said something about a castle and I hated that.
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/drama/templates/errors/402.html b/drama/templates/errors/402.html index 837566d0a..faa434b1a 100644 --- a/drama/templates/errors/402.html +++ b/drama/templates/errors/402.html @@ -1,19 +1,21 @@ -{% extends "errors/default.html" %} +{% extends "default.html" %} {% block title %} -The royal bank has told us that you owe them some coin. You'll need to pay off your debts before you can continue.
- + +This page is only available to patrons:
+ https://rdrama.gumroad.com/l/tfcvri +Our security warlocks have cast an impenetrable shield spell around this page.
+YOU AREN'T WELCOME HERE GO AWAY
The internet gremlins have led you to a dark, musty dead-end. There's nothing here.
+Someone typed something wrong and it was probably you, please do better.
Careful, stranger. The internet gnomes don’t take kindly to outsiders that don’t follow their customs.
+idk how anyone gets this error but if you see this, remember to follow @carpathianflorist
the original error text here talked about internet gremlins and wtf
The server thinks you're asking something silly. It might take you more seriously if you take off the jester outfit.
+STOP BREAKING THINGS PLEASE WHY DO WE HAVE SO MANY ERROR CODES
Slow down there, friend! The royal guard doesn't like it when you go that fast!
+go spam somewhere else nerd
By royal decree, we are unable to show this to you right now.
+
fool.
Something has broken. A master dwarven computersmith has been dispatched to un-break it.
- +Hiiiii it's carp! I think this error means that there's a timeout error. And I think that means something took too long to load so it decided not to work at all. If you keep seeing this on the same page but not other pages, then something is probably wrong with that specific function. It may not be called a function, but that sounds right to me. Anyway, ping me and I'll whine to someone smarter to fix it. Don't bother them. Thanks ily <3
+Drama is unavailable.
-The server you connected to is most likely being restarted right now. Try again in a few moments.
+rDrama is unavailable.
+HI IT'S CARP AGAIN
I'm like 95% sure this error means Aevann is restarting the server to apply a change. But I think that's also 520/521? What causes a 503? No one knows. Wait like a minute (maybe two) and see if it's still happening. It shouldn't. Good luck!