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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user