handle 404, set serialization context