doc, but error code is error code.
setting it when there is no error is just plain wrong.