-
Couldn't load subscription status.
- Fork 43
Closed
Description
Currently, error codes are not picked up by Patterns. By consequence, a user might be looking at an infinitely spinning spinner after clicking on a link when the session is expired. The situation for a 503 and a 401 is similar.
Goal
User comes to an understanding why the desired content is not loading.
Suggested solutions
- A data attribute is placed on body that can be turned into a visible message for the user (Something similar is currently done with 404s).
- An automatic redirect URL is assigned for various error messages through an inject property on every relevant link or form. IE
url-401: /401.html. - An automatic redirect URL is assigned for various error messages through meta tags. IE
<meta name="url-404" content="/404.html">. - A (translatable) message in a meta tag that will be displayed (IE by putting the text in a data attribute on body) when an error code is returned. IE
<meta name="url-401" content="You are not authorised to view the requested content.">. - A simple code is placed in a data attribute on body. IE
data-error-code: 401. This code is translated into a visible error code by the CSS. Every theme can have its own language.
- …?