Use the correct error code.