added more detail in bad request messages