diff --git a/src/utils/sanitize.ts b/src/utils/sanitize.ts index 5368c8f1..278b4c18 100644 --- a/src/utils/sanitize.ts +++ b/src/utils/sanitize.ts @@ -7,7 +7,7 @@ export function sanitizeStatusMessage(statusMessage = ""): string { } export function sanitizeStatusCode( - statusCode: string | number, + statusCode?: string | number, defaultStatusCode = 200, ): number { if (!statusCode) {