I don't know if always returns error and code when it encounters a problem. It's not covered in the API docs, I was just going off the behavior I observed. Definitely worth checking just to be sure.