Added more error messages for invalid requests