It is not clear from the documentation that the error code is a string, so both string and integer are accepted now.