handle 404 and other non-200 headers