Add notes for errors on api docs