Rewrite docs describing error messages