Invalid error should return with 400