- The server cannot process the request due to a client - error. - Please check the request and try again. If you’re the application - owner check the logs for more information. -
-diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb new file mode 100644 index 00000000..82248f7e --- /dev/null +++ b/app/controllers/errors_controller.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +class ErrorsController < ApplicationController + # 400 + def bad_request + render(status: :bad_request) + end + + # 404 + def not_found + render(status: :not_found) + end + + # 406 + def unsupported_browser + render(status: :not_acceptable) + end + + # 422 + def unprocessable_entity + render(status: :unprocessable_entity) + end + + # 500 + def internal_server_error + render(status: :internal_server_error) + end +end diff --git a/app/controllers/ui_portal/error_pages_controller.rb b/app/controllers/ui_portal/error_pages_controller.rb new file mode 100644 index 00000000..5d656216 --- /dev/null +++ b/app/controllers/ui_portal/error_pages_controller.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +class UIPortal::ErrorPagesController < UIPortal::BaseController + def show + end +end diff --git a/app/views/errors/bad_request.html.erb b/app/views/errors/bad_request.html.erb new file mode 100644 index 00000000..c97b3539 --- /dev/null +++ b/app/views/errors/bad_request.html.erb @@ -0,0 +1,17 @@ +
Please try again in a minute.
+Please try again in a minute.
+If the URL was manually entered, please check for typos:
+<%= request.original_fullpath %>
+ Your browser is not supported.
+Please upgrade your browser to continue.
+- The server cannot process the request due to a client - error. - Please check the request and try again. If you’re the application - owner check the logs for more information. -
-- The page you were looking for doesn’t exist. You may - have mistyped the address or the page may have moved. If you’re the - application owner check the logs for more information. -
-
- Your browser is not supported.
- Please upgrade your browser to continue.
-
- The change you wanted was rejected. Maybe you tried - to change something you didn’t have access to. If you’re the - application owner check the logs for more information. -
-
- We’re sorry, but something went wrong.
- If you’re the application owner check the logs for more information.
-