Improved error handling of 404 or 401 tickets.

This commit is contained in:
Martin Edenhofer 2015-01-13 23:06:13 +01:00
parent 34232f6117
commit 8a885f22ab
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,5 @@
<div class="main flex">
<h1><%- @T('Error') %></h1>
<p><%- @T('Status Code') %>: <%= @status %></p>
<p><%= @detail %></p>
</div>

View file

@ -0,0 +1,4 @@
<div class="main flex">
<h1><%- @T('Not Found') %></h1>
<p><%- @T('Sorry, unable to find this ressource.') %></p>
</div>

View file

@ -0,0 +1,4 @@
<div class="main flex">
<h1><%- @T('Unauthorized') %></h1>
<p><%- @T('Sorry, you are not allowed to access this ressource.') %></p>
</div>