Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/volto/news/7754.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Set HTTP 503 status code for ConnectionRefused error page. @Shyam-Raghuwanshi
4 changes: 3 additions & 1 deletion packages/volto/src/components/theme/App/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ export class App extends Component {
<main ref={this.mainRef}>
<OutdatedBrowser />
{this.props.connectionRefused ? (
<ConnectionRefusedView />
<ConnectionRefusedView
staticContext={this.props.staticContext}
/>
) : this.state.hasError ? (
<Error
message={this.state.error.message}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/**
* Home container.
* Connection refused error page.
* @module components/theme/ConnectionRefused/ConnectionRefused
*/

import React from 'react';
import { FormattedMessage } from 'react-intl';
import { Container } from 'semantic-ui-react';
import config from '@plone/volto/registry';
import { withServerErrorCode } from '@plone/volto/helpers/Utils/Utils';

const ConnectionRefused = () => (
<Container
Expand Down Expand Up @@ -71,4 +72,4 @@ const ConnectionRefused = () => (
</Container>
);

export default ConnectionRefused;
export default withServerErrorCode(503)(ConnectionRefused);