Return json also for 4xx