---
title: Superagent
category: JavaScript libraries
---

### Result

    result == {
      ok: true
      error: false

      // Response
      body: null
      text: "<!doctype html>..."

      // Headers
      status: 200
      type: "text/html"
      charset: "UTF-8"
      headers: {
        'cache-control': 'public',
        'content-type': 'text/html; charset=UTF-8'
      }

      accepted: false

      // specific errors
      badRequest: false
      clientError: false
      forbidden: false
      notFound: false
      noContent: false
      notAcceptable: false
      unauthorized: false
    }
