Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Allow successCodes to be passed in options

Compare
Choose a tag to compare
@taylordowns2000 taylordowns2000 released this 29 Jan 18:09

Defaults to 201, 201, 203 (as per version 2 of the adaptor) but allows for users to specify their own codes.

get('path', {
  options: {
    successCodes: [200, 201, 202]
  }
});