def _should_use_fr_error_handler(self):
adapter = current_app.create_url_adapter(request)<EOL>try:<EOL><INDENT>adapter.match()<EOL><DEDENT>except MethodNotAllowed as e:<EOL><INDENT>valid_route_method = e.valid_methods[<NUM_LIT:0>]<EOL>rule, _ = adapter.match(method=valid_route_method, return_rule=True)<EOL>return self.owns_endpoint(rule.endpoint)<EOL><DEDENT>except NotFound:<EOL><INDENT>return self.catch_all_404s<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT>
Determine if error should be handled with FR or default Flask

        The goal is to return Flask error handlers for non-FR-related routes,
        and FR errors (with the correct media type) for FR endpoints. This
        method currently handles 404 and 405 errors.

        :return: bool