server-side: content-type header, json on 404