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) intoAppError - Normalizing unknown HTTP-like failures where the status is the primary classifier
Last updated on