fix(Error): resolve misleading HTTP status code 501 in Error page. Fixes #22159

Signed-off-by: Karthikeyan Perumal <7823084+karthikeyanjp@users.noreply.github.com>
This commit is contained in:
Karthikeyan Perumal
2024-01-19 17:58:16 -06:00
parent 98152ee7ae
commit 214f2da8c1
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/core-components': patch
'@backstage/app-defaults': patch
---
Fix invalid HTTP status code 501 in Error Page
@@ -49,7 +49,7 @@ const DefaultBootErrorPage = ({ step, error }: BootErrorPageProps) => {
// TODO: figure out a nicer way to handle routing on the error page, when it can be done.
return (
<OptionallyWrapInRouter>
<ErrorPage status="501" statusMessage={message} />
<ErrorPage statusMessage={message} />
</OptionallyWrapInRouter>
);
};
@@ -24,7 +24,7 @@ import { useSupportConfig } from '../../hooks';
import { MicDrop } from './MicDrop';
interface IErrorPageProps {
status: string;
status?: string;
statusMessage: string;
additionalInfo?: React.ReactNode;
supportUrl?: string;