MCPcopy Index your code
hub / github.com/ThatGuySam/doesitarm / hasResponseStatus

Function hasResponseStatus

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

Source from the content-addressed store, hash-verified

34}
35
36function hasResponseStatus ( error ) {
37 return typeof error?.response?.status === 'number'
38}
39
40export function shouldRetryError ( error ) {
41 return hasResponseStatus( error ) && error.response.status >= 500

Callers 1

shouldRetryErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected