Skip to content

Commit

Permalink
Merge pull request #130 from alphagov/403_error
Browse files Browse the repository at this point in the history
Add support for 403 error page.
  • Loading branch information
bradwright committed Jun 26, 2015
2 parents dfbf10c + 15d6a8d commit 209dfe0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/slimmer/app.rb
Expand Up @@ -92,6 +92,8 @@ def rewrite_response(env, response)
rewritten_body = case response.status
when 200
@skin.success request, response, s(response.body)
when 403
@skin.error '403', s(response.body), request.env
when 404
@skin.error '404', s(response.body), request.env
when 410
Expand Down

0 comments on commit 209dfe0

Please sign in to comment.