-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
55 additions
and
420 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class ErrorsController < ApplicationController | ||
def not_found | ||
render status: :not_found | ||
end | ||
|
||
def internal_server_error | ||
render status: :internal_server_error | ||
end | ||
|
||
def unprocessable_entity | ||
render status: :unprocessable_entity | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="l-constrained l-error"> | ||
<h1>We're sorry. Something seems to have gone wrong.</h1> | ||
<p class="l-error__description">This is a problem at our end. Try again later and we will hope to have fixed it.</p> | ||
|
||
<section class="l-error__useful-links"> | ||
<h2 class="l-error__useful-links-heading">Useful links</h2> | ||
<ul class="l-error__list"> | ||
<li class="l-error__list-item"><a class="l-error__link" href="/">Return to the Retirement Advice Directory homepage</a></li> | ||
<li class="l-error__list-item"><a class="l-error__link" href="https://www.moneyhelper.org.uk">Go to the MoneyHelper homepage</a></li> | ||
</ul> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="l-constrained l-error"> | ||
<h1>We're sorry. We can't find that page.</h1> | ||
<p class="l-error__description">Please check the address you entered or try again later and you should be able to find it.</p> | ||
|
||
<section class="l-error__useful-links"> | ||
<h2 class="l-error__useful-links-heading">Useful links</h2> | ||
<ul class="l-error__list"> | ||
<li class="l-error__list-item"><a class="l-error__link" href="/">Return to the Retirement Advice Directory homepage</a></li> | ||
<li class="l-error__list-item"><a class="l-error__link" href="https://www.moneyhelper.org.uk">Go to the MoneyHelper homepage</a></li> | ||
</ul> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="l-constrained l-error"> | ||
<h1>We're sorry. We can't process that data.</h1> | ||
<p class="l-error__description">You have entered data that we don't know what to do with, or that we can't process. Please go back and try again later.</p> | ||
|
||
<section class="l-error__useful-links"> | ||
<h2 class="l-error__useful-links-heading">Useful links</h2> | ||
<ul class="l-error__list"> | ||
<li class="l-error__list-item"><a class="l-error__link" href="/">Return to the Retirement Advice Directory homepage</a></li> | ||
<li class="l-error__list-item"><a class="l-error__link" href="https://www.moneyhelper.org.uk">Go to the MoneyHelper homepage</a></li> | ||
</ul> | ||
</section> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.