return json when status is 404, else setBody() so it can be used in a hook...