ice.py
def _get_error_page_callback(self):
        """Return an error page for the current response status."""
        if self.response.status in self._error_handlers:
            return self._error_handlers[self.response.status]
        elif None in self._error_handlers:
            return self._error_handlers[None]
        else:
            # Rudimentary error handler if no error handler was found
            self.response.media_type = 'text/plain'
            return lambda: self.response.status_line
def _get_error_page_callback(self):
        if self.response.status in self._error_handlers:
            return self._error_handlers[self.response.status]
        elif None in self._error_handlers:
            return self._error_handlers[None]
        else:
            # Rudimentary error handler if no error handler was found
            self.response.media_type = 'text/plain'
            return lambda: self.response.status_line
def _get_error_page_callback ( self ) : if self . response . status in self . _error_handlers : return self . _error_handlers [ self . response . status ] elif None in self . _error_handlers : return self . _error_handlers [ None ] else : # Rudimentary error handler if no error handler was found self . response . media_type = 'text/plain' return lambda : self . response . status_line
Return an error page for the current response status.
Return an error page for the current response status .