Added the errorcodes to the doc where needed