Skip to content

Error Pages

The six-error-page can be used to show the different errors.

Error Pages

Set attribute error-code to show proper error page.

Default Errors

Forbidden Access

html
<six-error-page error-code="403" language="en"></six-error-page>
<six-error-page error-code="403" language="de"></six-error-page>

Not Found

html
<six-error-page error-code="404" language="en"></six-error-page>
<six-error-page error-code="404" language="de"></six-error-page>

Internal Server Error

html
<six-error-page error-code="500" language="en"></six-error-page>
<six-error-page error-code="500" language="de"></six-error-page>

Custom Error Message

html
<six-error-page custom-title="my title" id="custom-error-message" custom-icon="home"></six-error-page>
<script type="module">
  const sixErrorPage = document.getElementById('custom-error-message');
  sixErrorPage.customDescription = ['My', 'Description'];
</script>

Properties

PropertyAttributeDescriptionTypeDefault
customDescription--Defines a custom description.string[] | undefinedundefined
customIconcustom-iconDefines a custom icon.string | undefinedundefined
customTitlecustom-titleDefines a custom title.string | undefinedundefined
errorCodeerror-codeDefines error Code and thus displays the proper error page.403 | 404 | 500 | undefinedundefined
languagelanguageDefines language and thus displays the proper error page in the selected language."de" | "en"'en'

Shadow Parts

PartDescription
"container"
"description"
"icon"
"icon-container"
"title"

Dependencies

Depends on

Graph


Copyright © 2021-present SIX-Group