Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)

        def is_client_error(code):
    return code >= 400 and code <= 499
        


src/t/r/treeherder-service-HEAD/vendor/rest_framework/tests/test_status.py   treeherder-service(Download)
from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.status import (
    is_informational, is_success, is_redirect, is_client_error, is_server_error
)

src/d/j/django-rest-framework-HEAD/rest_framework/tests/test_status.py   django-rest-framework(Download)
from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.status import (
    is_informational, is_success, is_redirect, is_client_error, is_server_error
)

src/d/j/djangorestframework-2.3.13/rest_framework/tests/test_status.py   djangorestframework(Download)
from __future__ import unicode_literals
from django.test import TestCase
from rest_framework.status import (
    is_informational, is_success, is_redirect, is_client_error, is_server_error
)