MCPcopy
hub / github.com/ThatGuySam/doesitarm / shouldRetryError

Function shouldRetryError

helpers/http.js:40–42  ·  view source on GitHub ↗
( error )

Source from the content-addressed store, hash-verified

38}
39
40export function shouldRetryError ( error ) {
41 return hasResponseStatus( error ) && error.response.status >= 500
42}
43
44export class HttpError extends Error {
45 constructor ( message, {

Callers 2

http.test.tsFile · 0.90
requestFunction · 0.85

Calls 1

hasResponseStatusFunction · 0.85

Tested by

no test coverage detected