Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
catchError(err =>
throwError(new HttpError(err, HttpStatus.INTERNAL_SERVER_ERROR)),
),
catchError(err => throwError(new HttpError(err, HttpStatus.INTERNAL_SERVER_ERROR)))
)
catchError(error => iif(
() => error.code === 'ENOENT',
throwError(new HttpError(`Asset not found for path: ${req.url}`, HttpStatus.NOT_FOUND)),
throwError(new HttpError('Internal server error', HttpStatus.INTERNAL_SERVER_ERROR)),
)),
)),
catchError(err => throwError(new HttpError(err, HttpStatus.INTERNAL_SERVER_ERROR)))
)
catchError(err => throwError(new HttpError(err, HttpStatus.INTERNAL_SERVER_ERROR)))
)
catchError(() =>
throwError(new HttpError('Something went wrong', HttpStatus.INTERNAL_SERVER_ERROR))
)