adding ajax error handling

This issue is linked with THRIFT-2584