def METHOD_NAME(self):
    if self.flags & CREATE_PARENTS:
        raise BadParameter("File creation not supported via HTTP(S)")
    elif self.flags & CREATE:
        raise BadParameter("File creation not supported via HTTP(S)")
    elif self.flags & WRITE:
        raise BadParameter("File write not supported via HTTP(S)")
    elif self.flags & READ:
        pass
    self.valid = True