How to use the @marblejs/core.HttpStatus.INTERNAL_SERVER_ERROR function in @marblejs/core

To help you get started, we’ve selected a few @marblejs/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github edbzn / reactive-blog / src / server / api / article / effects / update-article.effect.ts View on Github external
catchError(err =>
          throwError(new HttpError(err, HttpStatus.INTERNAL_SERVER_ERROR)),
        ),
github edbzn / reactive-blog / packages / server / src / api / article / effects / remove-article.effect.ts View on Github external
        catchError(err => throwError(new HttpError(err, HttpStatus.INTERNAL_SERVER_ERROR)))
      )
github marblejs / example / src / api / common / effects / getFile.effect.ts View on Github external
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)),
      )),
    )),
github edbzn / reactive-blog / packages / server / src / api / article / effects / post-article-reaction.effect.ts View on Github external
        catchError(err => throwError(new HttpError(err, HttpStatus.INTERNAL_SERVER_ERROR)))
      )
github edbzn / reactive-blog / packages / server / src / api / comment / effects / get-comment-by-article.effect.ts View on Github external
        catchError(err => throwError(new HttpError(err, HttpStatus.INTERNAL_SERVER_ERROR)))
      )
github edbzn / reactive-blog / packages / server / src / api / authentication / effects / signup.effect.ts View on Github external
catchError(() =>
      throwError(new HttpError('Something went wrong', HttpStatus.INTERNAL_SERVER_ERROR))
    )