Merge pull request #22401 from Evernorth/kp/fix-misleading-status-code-in-error-page

fix(Error): resolve misleading HTTP status code 501 in Error page. Fixes #22159
This commit is contained in:
Fredrik Adelöw
2024-01-31 15:26:38 +01:00
committed by GitHub
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;