9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-26 02:09:25 +00:00

js: support error code with string type

This commit is contained in:
Anthony Donlon
2025-12-23 20:52:59 +08:00
parent ae8849f39f
commit 48169fd3fa
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ Generates an HTML error page based on the provided parameters.
```typescript
interface ErrorPageParams {
// Basic information
error_code?: number; // Default: 500
error_code?: string | number; // Default: 500
title?: string; // Default: 'Internal server error'
html_title?: string; // Default: '{error_code}: {title}'
time?: string; // Auto-generated if not provided