0.0.2 • Published 8 years ago

popsicle-patch-bc-response v0.0.2

Weekly downloads
1
License
AGPL-3.0
Repository
github
Last release
8 years ago

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

8 years ago

0.0.1

8 years ago