message: add error notification on request API
diff: @@ -6,7 +6,6 @@ const createResponseHandler = (req, opts) => {
  return new Promise((fulfill, reject) => req.end((err, res) => {
  let serverError
  - let { body } = res
  // Errors
  @@ -18,15 +17,18 @@ const createResponseHandler = (req, opts) => {
  }
  if (serverError) {
  - throw new Error(serverError)
  + throw new Error(`Connection failed: ${debug}, server error:${serverError}`)
  }
  if (err) {
  // TODO write Error notifier
  opts.onComplete()
  - return reject({ resData: body, err, res })
  + return reject({ resData: err, res })
  }
  + let { body } = res
  +
  +
  if (!body) {
  try {
  body = JSON.parse(res.text)
  