code: def code(self):
          
          code = getattr(self, '_code', None)
          if not code:
              if self.has_body():
                  code = 200
              else:
                  code = 204
  
          return code
docs: the http status code to return to the client, by default, 200 if a body is present otherwise 204