raise bad request unless client present