def good
import bend-kit-oauth2@0.11.0.1/oauth2.bend as Oauth2import Base
138# A 2xx with an access token of type Bearer (RFC 6750 §4, case-insensitive), the only kind request sends.
139def good(+status: U32, g: Got) -> Bool:
140 Got{a, t, r, s, e, er, d} = g
141 Bool.and(Bool.and(U32.is_le(200, status), U32.is_lt(status, 300)), Bool.and(Bool.not(String.is_empty(a)), String.eq(String.to_lower(t), "bearer")))