Correct error codes in interface.