Extending the Custom Error Pages

It is possible to use the Platform error page component to display error messages using routing. In the frontend code raising the error change current location to /error/error/<error-code> where error-code is an integer greater than 100 (lower numbers are reserved for the Platform) and if the translation file contains the string with the key COMPONENT.ERROR.MESSAGES.<error-code> it will be displayed on the error page.