popsicle-patch-bc-response

0.0.2 • Public • Published

popsicle-patch-bc-response

Business Catalyst doesn't set useful status codes on some of its responses. This attempts to correct that by examining the response body and looking for certain words, such as "unauthorised" and "please log in".

Designed to fit in with popsicle and popsicle-status.

Example

const updateRequest = popsicle(requestOptions)
            .after(patcher.patchAuthErrorResponses)
            .use(status());

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i popsicle-patch-bc-response

Weekly Downloads

0

Version

0.0.2

License

AGPL-3.0

Last publish

Collaborators

  • rkb