Home Reference Source Test
import {ServerResponse} from 'kinto-http/lib/errors.js'
public class | source

ServerResponse

Extends:

Error → ServerResponse

"Error" subclass representing a >=400 response from the server.

Whether or not this is an error depends on your application.

The json field can be undefined if the server responded with an empty response body. This shouldn't generally happen. Most "bad" responses come with a JSON error description, or (if they're fronted by a CDN or nginx or something) occasionally non-JSON responses (which become UnparseableResponseErrors, above).

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

data: *

public

Public Constructors

public constructor() source

Public Members

public data: * source

public response: * source