Add mapping for errors