From ae6cbcbfea586168a1a10dd27a7d1a962a66651f Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 21 Jul 2022 13:38:23 +0100 Subject: [PATCH] fix(templates)!: use numeric status codes (#145) --- packages/ui-templates/templates/error-404/messages.json | 2 +- packages/ui-templates/templates/error-500/messages.json | 2 +- packages/ui-templates/templates/error-dev/messages.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/ui-templates/templates/error-404/messages.json b/packages/ui-templates/templates/error-404/messages.json index 713d7d646b..262941b2fe 100644 --- a/packages/ui-templates/templates/error-404/messages.json +++ b/packages/ui-templates/templates/error-404/messages.json @@ -1,5 +1,5 @@ { - "statusCode": "404", + "statusCode": 404, "statusMessage": "Not Found", "description": "Sorry, the page you are looking for could not be found.", "backHome": "Go back home" diff --git a/packages/ui-templates/templates/error-500/messages.json b/packages/ui-templates/templates/error-500/messages.json index 3ce7d78762..69534ad900 100644 --- a/packages/ui-templates/templates/error-500/messages.json +++ b/packages/ui-templates/templates/error-500/messages.json @@ -1,5 +1,5 @@ { - "statusCode": "500", + "statusCode": 500, "statusMessage": "Server error", "description": "This page is temporarily unavailable." } diff --git a/packages/ui-templates/templates/error-dev/messages.json b/packages/ui-templates/templates/error-dev/messages.json index a26fd4f13f..afd71e0257 100644 --- a/packages/ui-templates/templates/error-dev/messages.json +++ b/packages/ui-templates/templates/error-dev/messages.json @@ -1,5 +1,5 @@ { - "statusCode": "500", + "statusCode": 500, "statusMessage": "Server error", "description": "An error occurred in the application and the page could not be served. If you are the application owner, check your server logs for details.", "stack": ""