Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Observable(obs => {
const response = { status: 500, ok: false } as Response;
throwServerError(response, 'ServerError', 'app is crashing');
});
});