def set_resp_defaults(req, resp, resource, params):
 if (resource._default_status is not None):
  resp.status = resource._default_status
 if (resource._default_body is not None):
  resp.body = resource._default_body
 if (resource._default_headers is not None):
  resp.set_headers(resource._default_headers)

def set_resp_defaults ( req , resp , resource , params ) : if ( resource . _default_status is not None ) : resp . status = resource . _default_status if ( resource . _default_body is not None ) : resp . body = resource . _default_body if ( resource . _default_headers is not None ) : resp . set_headers ( resource . _default_headers )
before hook for setting default response properties .