fojas / cleverbot-node

Cleverbot client in node.js
MIT License
62 stars 33 forks source link

Display Error Code when Cleverbot API is down. --Resolves Issue #6 #7

Closed reactivepixel closed 10 years ago

reactivepixel commented 10 years ago

When the API call returns a non-success status code replace the response message with "Error :" + Status Code that generated the error.

This resolves the problem when, on error, cleverbot saying "", the first line of an HTML error page.