Chris@0: $this->t('A client error happened'), Chris@0: ]; Chris@0: } Chris@0: Chris@0: /** Chris@0: * The default 401 content. Chris@0: * Chris@0: * @return array Chris@0: * A render array containing the message to display for 401 pages. Chris@0: */ Chris@0: public function on401() { Chris@0: return [ Chris@0: '#markup' => $this->t('Please log in to access this page.'), Chris@0: ]; Chris@0: } Chris@0: Chris@0: /** Chris@0: * The default 403 content. Chris@0: * Chris@0: * @return array Chris@0: * A render array containing the message to display for 403 pages. Chris@0: */ Chris@0: public function on403() { Chris@0: return [ Chris@0: '#markup' => $this->t('You are not authorized to access this page.'), Chris@0: ]; Chris@0: } Chris@0: Chris@0: /** Chris@0: * The default 404 content. Chris@0: * Chris@0: * @return array Chris@0: * A render array containing the message to display for 404 pages. Chris@0: */ Chris@0: public function on404() { Chris@0: return [ Chris@0: '#markup' => $this->t('The requested page could not be found.'), Chris@0: ]; Chris@0: } Chris@0: Chris@0: }