boatmeme / microsoft-translator-java-api

Java wrapper for the Microsoft Translator API
http://code.google.com/p/microsoft-translator-java-api/
Apache License 2.0
85 stars 61 forks source link

Credential error but still returns Http response code 200 #50

Open KyleSLA opened 10 years ago

KyleSLA commented 10 years ago

If I use the wrong credential to connect to MS translator service, the Http connection will return a 200 OK code, but the returned string contains the error:

"TranslateApiException: Cannot find an active Azure Market Place Translator Subscription associated with the request credentials...."

So the Exception is no longer thrown (because the returned code is 200). Instead the error message becomes the translated text returned.