Both can take place, but nitrous acid is unstable. In warm or concentrated solutions, the nitrous acid will disproportionate, forming nitric oxide and more nitric acid. So the nitrous acid is essentially only a temporary intermediate.