cahnged some response codes from 400 to 404