Fix various error code strings

fixes #954