Skip to Content

HTTP status

Code

HTTP/<status>

What it means

Use this pattern when an error is best classified by HTTP status (e.g. HTTP/404).

How it’s generated

In code, prefer the helper:

import { AppErrorCodes } from '@aina/shared-common'; const code = AppErrorCodes.HTTP.status(404); // "HTTP/404"

When to use

  • Wrapping HttpException (NestJS) into AppError
  • Normalizing unknown HTTP-like failures where the status is the primary classifier
Last updated on
Docsv1.0.10