Returns the OAuthErrorCode whose error string matches error, or UNKNOWN if the value is null, empty, or not recognized.