Moving BadRequest to common place. Using it in both servers.