def is_client_error(status):
 return ((400 <= status) and (status <= 499))

def is_client_error ( status ) : return ( ( 400 <= status ) and ( status <= 499 ) )
check if http status code is client error .