Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Make the 401 page neater
Browse files Browse the repository at this point in the history
The stock error template has goofy formatting and no inline sign in
affordance.
  • Loading branch information
chadwhitacre committed Sep 7, 2015
1 parent 336563e commit 884041e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 401.spt
@@ -0,0 +1,13 @@
from aspen.http import status_strings
[---]
banner = "401"
[---] text/html via jinja2
{% extends "templates/base.html" %}
{% block content %}
Please {% include "templates/sign-in-using.html" %} to continue.
{% endblock %}
[---] application/json via stdlib_percent
{ "error_code": 401
, "error_message_short": "Unauthenticated"
, "error_message_long": "Please retry your request with authentication."
}

0 comments on commit 884041e

Please sign in to comment.