Fixed return codes : so that we always return 400 for bad request
formats