It seems that `BadRequest` is not defined... missing import?