Skip to content

r-k-b/popsicle-patch-bc-response

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Patch responses from Business Catalyst to have useful HTTP status codes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published