error pages
This commit is contained in:
parent
169f8bc1bd
commit
1afb36799a
41 changed files with 342 additions and 261 deletions
2
app/views/error_pages/bad_gateway.html.slim
Normal file
2
app/views/error_pages/bad_gateway.html.slim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
- content_for(:code) { "502" }
|
||||
- content_for(:message) { t("errors.bad_gateway") }
|
||||
2
app/views/error_pages/bad_request.html.slim
Normal file
2
app/views/error_pages/bad_request.html.slim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
- content_for(:code) { "400" }
|
||||
- content_for(:message) { t("errors.bad_request") }
|
||||
2
app/views/error_pages/conflict.html.slim
Normal file
2
app/views/error_pages/conflict.html.slim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
- content_for(:code) { "409" }
|
||||
- content_for(:message) { t("errors.conflict") }
|
||||
2
app/views/error_pages/expectation_failed.html.slim
Normal file
2
app/views/error_pages/expectation_failed.html.slim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
- content_for(:code) { "417" }
|
||||
- content_for(:message) { t("error.expectation_failed") }
|
||||
3
app/views/error_pages/failed_dependency.html.slim
Normal file
3
app/views/error_pages/failed_dependency.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "424" }
|
||||
- content_for(:message) { t("errors.failed_dependency") }
|
||||
|
||||
3
app/views/error_pages/forbidden.html.slim
Normal file
3
app/views/error_pages/forbidden.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "403" }
|
||||
- content_for(:message) { t("errors.forbidden") }
|
||||
|
||||
3
app/views/error_pages/gateway_timeout.html.slim
Normal file
3
app/views/error_pages/gateway_timeout.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "504" }
|
||||
- content_for(:message) { t("errors.gateway_timeout") }
|
||||
|
||||
3
app/views/error_pages/gone.html.slim
Normal file
3
app/views/error_pages/gone.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "410" }
|
||||
- content_for(:message) { t("errors.gone") }
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "505" }
|
||||
- content_for(:message) { t("errors.http_version_not_supported") }
|
||||
|
||||
3
app/views/error_pages/insufficient_storage.html.slim
Normal file
3
app/views/error_pages/insufficient_storage.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "507" }
|
||||
- content_for(:message) { t("errors.insufficient_storage") }
|
||||
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
h1 Es ist ein Fehler aufgetreten
|
||||
- content_for(:code) { "500" }
|
||||
- content_for(:message) { t("errors.internal_server_error") }
|
||||
|
||||
p Das kann leider vorkommen. Bitte versuche es nocheinmal und falls der Fehler weiter auftritt, hoffe dass er bald repariert wird, sorry
|
||||
|
||||
p == '¯\_(ツ)_/¯'
|
||||
p == '¯\_(ツ)_/¯'
|
||||
- content_for(:message) { t("errors.internal_server_error") }
|
||||
|
|
|
|||
3
app/views/error_pages/length_required.html.slim
Normal file
3
app/views/error_pages/length_required.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "411" }
|
||||
- content_for(:message) { t("errors.length_required") }
|
||||
|
||||
3
app/views/error_pages/locked.html.slim
Normal file
3
app/views/error_pages/locked.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "423" }
|
||||
- content_for(:message) { t("errors.locked") }
|
||||
|
||||
3
app/views/error_pages/method_not_allowed.html.slim
Normal file
3
app/views/error_pages/method_not_allowed.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "405" }
|
||||
- content_for(:message) { t("errors.method_not_allowed") }
|
||||
|
||||
3
app/views/error_pages/not_acceptable.html.slim
Normal file
3
app/views/error_pages/not_acceptable.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "406" }
|
||||
- content_for(:message) { t("errors.not_acceptable") }
|
||||
|
||||
3
app/views/error_pages/not_extended.html.slim
Normal file
3
app/views/error_pages/not_extended.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "510" }
|
||||
- content_for(:message) { t("errors.not_extended") }
|
||||
|
||||
|
|
@ -1,6 +1,4 @@
|
|||
h1 Error 404
|
||||
|
||||
p Diese Seite existiert nicht (mehr), sorry.
|
||||
|
||||
- content_for(:code) { "404" }
|
||||
- content_for(:message) { t("errors.not_found") }
|
||||
p
|
||||
= image_tag("404.gif")
|
||||
3
app/views/error_pages/not_implemented.html.slim
Normal file
3
app/views/error_pages/not_implemented.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "501" }
|
||||
- content_for(:message) { t("errors.not_implemented") }
|
||||
|
||||
3
app/views/error_pages/payload_too_large.html.slim
Normal file
3
app/views/error_pages/payload_too_large.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "413" }
|
||||
- content_for(:message) { t("errors.payload_too_large") }
|
||||
|
||||
3
app/views/error_pages/payment_required.html.slim
Normal file
3
app/views/error_pages/payment_required.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "402" }
|
||||
- content_for(:message) { t("errors.payment_required") }
|
||||
|
||||
3
app/views/error_pages/precondition_failed.html.slim
Normal file
3
app/views/error_pages/precondition_failed.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "412" }
|
||||
- content_for(:message) { t("errors.precondition_failed") }
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "407" }
|
||||
- content_for(:message) { t("errors.proxy_authentication_required") }
|
||||
|
||||
3
app/views/error_pages/range_not_satisfiable.html.slim
Normal file
3
app/views/error_pages/range_not_satisfiable.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "416" }
|
||||
- content_for(:message) { t("errors.range_not_satisfiable") }
|
||||
|
||||
3
app/views/error_pages/request_timeout.html.slim
Normal file
3
app/views/error_pages/request_timeout.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "408" }
|
||||
- content_for(:message) { t("errors.request_timeout") }
|
||||
|
||||
3
app/views/error_pages/service_unavailable.html.slim
Normal file
3
app/views/error_pages/service_unavailable.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "503" }
|
||||
- content_for(:message) { t("errors.service_unavailable") }
|
||||
|
||||
3
app/views/error_pages/unauthorized.html.slim
Normal file
3
app/views/error_pages/unauthorized.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "401" }
|
||||
- content_for(:message) { t("errors.unauthorized") }
|
||||
|
||||
|
|
@ -1,3 +1,6 @@
|
|||
- content_for(:code) { "401" }
|
||||
- content_for(:message) { t("errors.unauthorized") }
|
||||
|
||||
h1 Es ist ein Fehler aufgetreten
|
||||
|
||||
p Ich konnte deine Anfrage nicht verstehen.
|
||||
3
app/views/error_pages/unprocessable_entity.html.slim
Normal file
3
app/views/error_pages/unprocessable_entity.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "422" }
|
||||
- content_for(:message) { t("errors.unprocessable_entity") }
|
||||
|
||||
3
app/views/error_pages/unsupported_media_type.html.slim
Normal file
3
app/views/error_pages/unsupported_media_type.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "415" }
|
||||
- content_for(:message) { t("errors.unsupported_media_type") }
|
||||
|
||||
3
app/views/error_pages/upgrade_required.html.slim
Normal file
3
app/views/error_pages/upgrade_required.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "426" }
|
||||
- content_for(:message) { t("errors.upgrade_required") }
|
||||
|
||||
3
app/views/error_pages/uri_too_long.html.slim
Normal file
3
app/views/error_pages/uri_too_long.html.slim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
- content_for(:code) { "414" }
|
||||
- content_for(:message) { t("errors.uri_too_long") }
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue