<% let resources_cdn = resources_use_cdn ? 'https://cloudflare.com' : ''; %> <% let error_code = params.error_code || 500; let title = params.title || 'Internal server error'; let html_title_output = params.html_title || (error_code + ': ' + title); %> <%= html_title_output %>

<%= title %> Error code <%= error_code %>

<% let more_info = params.more_information || {}; %> <% if (!more_info.hidden) { %>
Visit <%= more_info.text || 'cloudflare.com' %> for <%= more_info.for || "more information" %>.
<% } %>
<%= params.time %>
<% for (let item_id of ['browser', 'cloudflare', 'host']) { %> <% let icon, default_location, default_name, text_color, status_text; if (item_id === 'browser') { icon = 'browser'; default_location = 'You'; default_name = 'Browser'; } else if (item_id === 'cloudflare') { icon = 'cloud'; default_location = 'San Francisco'; default_name = 'Cloudflare'; } else { icon = 'server'; default_location = 'Website'; default_name = 'Host'; } let item = params[item_id + '_status'] || {}; let status = item.status || 'ok'; if (item.status_text_color) { text_color = item.status_text_color; } else if (status === 'ok') { text_color = '#9bca3e'; // text-green-success } else if (status === 'error') { text_color = '#bd2426'; // text-red-error } status_text = item.status_text || (status === 'ok' ? 'Working' : 'Error'); %>
<%= item.location || default_location %> <% let _name_style; if ((item.name || default_name) === 'Cloudflare') { _name_style = 'style="color: #2f7bbf;"' } else{ _name_style = '' } %>

><%= item.name || default_name %>

<%= status_text %>
<% } %>

What happened?

<%= (params.what_happened || 'There is an internal server error on Cloudflare\'s network.') %>

What can I do?

<%= (params.what_can_i_do || 'Please try again in a few minutes.') %>