Permalink
Browse files

more useful 501 Not Implemented message on /

  • Loading branch information...
1 parent 43f6c24 commit 7728a34ae9ddb4ec43ced48ccc751efdea7b0396 @posativ committed Sep 2, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 regenwolken/views.py
View
@@ -50,7 +50,11 @@ def index():
else:
return jsonify(Item(obj, config, urlscheme(request)))
else:
- abort(501)
+ return Response(status=501, content_type='text/html', response=(
+ '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">'
+ '<title>501 Not Implemented</title>'
+ '<h1>Nope. Web Interface still not implemented.</h1>'
+ '<p>The server does not support the action requested by the browser.</p>'))
@login

0 comments on commit 7728a34

Please sign in to comment.