Not found returns JSON as well