import React, {Component, PropTypes} from 'react'; import Link from '../../components/base/Link'; import {showModal} from '../modals/index'; import SettingsModal from '../modals/SettingsModal'; import {STATUS_CODE_RENDER_FAILED} from '../../../common/constants'; class ResponseError extends Component { render () { const {error, statusCode, fontSize} = this.props; let msg = null; if (statusCode === STATUS_CODE_RENDER_FAILED) { msg = ( Template Documentation ) } else if (error && error.toLowerCase().indexOf('certificate') !== -1) { msg = ( ) } else if (error && error.toLowerCase().indexOf('getaddrinfo') !== -1) { msg = ( ) } else { msg = ( Documentation ) } return (
          {error}
        

Here are some additional things that may help.

{msg}    Contact Support
); } } ResponseError.propTypes = { // Required error: PropTypes.string.isRequired, url: PropTypes.string.isRequired, statusCode: PropTypes.number.isRequired, fontSize: PropTypes.number.isRequired, }; export default ResponseError;