export default function handleStatus ( method , status , statusMessage ? ) { if ( status >= 400 ) { if ( statusMessage ) { return `${ method . toUpperCase ( ) }: Fetch returned with error code ${ status }. Status Message: "${ statusMessage }"` ; } else { return `Fetch returned with error ${ status }` ; } } else { return false ; } }