handle 404s separately from errors