A11 TypeScript API - v0.7.0
    Preparing search index...

    Function statusFromResponse

    • Converts a non-success Fetch response without parsing its body more than once. A JSON A11 Status is preserved when the peer supplied one.

      Parameters

      • response: Response
      • operation: string = "HTTP request"

      Returns Promise<Status>