def catch_status_code_error(func):
 func._catch_status_code_error = True
 return func

def catch_status_code_error ( func ) : func . _catch_status_code_error = True return func
non-200 response will been regarded as fetch failed and will not pass to callback .