File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
packages/event-handler/src Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1- import type { ErrorResponse } from '../types/rest.js' ;
1+ import type { ErrorResponse , HttpStatusCode } from '../types/rest.js' ;
22import { HttpErrorCodes } from './constants.js' ;
33
44export class RouteMatchingError extends Error {
@@ -20,7 +20,7 @@ export class ParameterValidationError extends RouteMatchingError {
2020}
2121
2222abstract class ServiceError extends Error {
23- abstract readonly statusCode : number ;
23+ abstract readonly statusCode : HttpStatusCode ;
2424 abstract readonly errorType : string ;
2525 public readonly details ?: Record < string , unknown > ;
2626
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ export type {
8888 ErrorResponse ,
8989 ErrorConstructor ,
9090 ErrorHandler ,
91+ HttpStatusCode ,
9192 HttpMethod ,
9293 Path ,
9394 RouterOptions ,
You can’t perform that action at this time.
0 commit comments