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