Verified

API Error Handler

TypeScript service에서 표준 JSON API error response를 safe default로 만들기 위한 Verified Samchil module입니다.

store listing은 Polar checkout으로 구매 가능합니다. 결제 확인 후 GitHub repository access는 Polar에 연결된 GitHub benefit으로 처리됩니다.

Public API

  • TypeScript service를 위한 표준 JSON API error response를 생성합니다.
  • status, code, public message, optional details, request id field를 normalize합니다.
  • 기존 ApiError instance는 보존하고 unknown error는 기본적으로 generic public response로 변환합니다.

Input 및 schema 동작

  • Unknown error는 기본적으로 generic public message를 사용합니다.
  • Raw message, stack trace, cause는 기본 public response에 노출하지 않습니다.
  • 이 package는 framework middleware를 직접 설치하지 않습니다.

Secret redaction

  • Redaction은 이 module을 통해 전달된 details에 적용됩니다.
  • Secret-like detail key와 configured raw value는 normalized details에서 redaction됩니다.
  • 이 module은 임의의 application log, tracing, metrics, alerting output을 검사하지 않습니다.