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());

Readme

Keywords

none

Package Sidebar

Install

npm i popsicle-patch-bc-response

Weekly Downloads

0

Version

0.0.2

License

AGPL-3.0

Last publish

Collaborators

  • rkb