Compare commits
24 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
5cd6b70141 | ||
![]() |
31671a2910 | ||
![]() |
67e35ccdda | ||
![]() |
be9a42d19d | ||
![]() |
4ea71e2b6f | ||
![]() |
f203cbf696 | ||
![]() |
610ca5d348 | ||
![]() |
e7ba75e59e | ||
![]() |
402f73502c | ||
![]() |
6e8a0c7d44 | ||
![]() |
75ee05e2ea | ||
![]() |
db54e1140a | ||
![]() |
e2a2b2b98b | ||
![]() |
8c786ec724 | ||
![]() |
7308d4865e | ||
![]() |
899483b57c | ||
![]() |
6750103c12 | ||
![]() |
bf62557251 | ||
![]() |
358402a0bc | ||
![]() |
cd0df14e0a | ||
![]() |
addecbd7da | ||
![]() |
412d1ed10d | ||
![]() |
739485b01d | ||
![]() |
aeb7648e35 |
49 changed files with 833 additions and 718 deletions
22
CHANGES.md
22
CHANGES.md
|
@ -1,6 +1,28 @@
|
|||
CHANGELOG
|
||||
======================================================
|
||||
|
||||
Branch 3.X.X
|
||||
------------------------------------------------------
|
||||
|
||||
### 3.1.0 ###
|
||||
|
||||
* Added: exposed `express.js` response object within `filter()` callback
|
||||
|
||||
|
||||
### 3.0.0 ###
|
||||
|
||||
* Refactored the whole codebase
|
||||
* Added: template support for `pagetitle` (automatically set if not defined)
|
||||
* Added: option to set the pagetitle directly via `payload.pagetitle` (koa+expressjs)
|
||||
* Added: filter function to dynamically manipulate the errordata object (koa+expressjs)
|
||||
* Added: support for additional variables/payloads
|
||||
* Added: support for placeholders to static page generator
|
||||
* Added: iso-639-1 `language` attribute (derived from page lang)
|
||||
* Added: error/exception object available via `error` (koa+expressjs)
|
||||
* Added: `onError` callback as debug error handler (not to be used in production)
|
||||
* Changed: moved `footer` content into `payload` object
|
||||
* Changed: all variables within the `ejs` template are only accessible via `vars` object
|
||||
|
||||
Branch 2.X.X
|
||||
------------------------------------------------------
|
||||
|
||||
|
|
88
README.md
88
README.md
|
@ -36,14 +36,7 @@ Just clone/download the git repository **or** use the prebuild packages (only th
|
|||
|
||||
## Download Prebuild Packages (Pages only, en_US) ##
|
||||
|
||||
**Direct Download**
|
||||
* [Download TAR Archive](https://raw.githubusercontent.com/HttpErrorPages/HttpErrorPages/master/dist/pages.tar)
|
||||
|
||||
**Shell/Bash**
|
||||
```shell
|
||||
# TAR Archive
|
||||
wget https://raw.githubusercontent.com/HttpErrorPages/HttpErrorPages/master/dist/pages.tar
|
||||
```
|
||||
* [Download Single Files](https://github.com/HttpErrorPages/HttpErrorPages/tree/master/dist)
|
||||
|
||||
## NGINX Integration ##
|
||||
|
||||
|
@ -124,7 +117,7 @@ yarn add http-error-pages
|
|||
|
||||
**Example**
|
||||
|
||||
A ready-to-use example can be found in [examples/express.js](exmaples/express.js)
|
||||
A ready-to-use example can be found in [examples/express.js](examples/express.js)
|
||||
|
||||
```js
|
||||
const _express = require('express');
|
||||
|
@ -153,7 +146,10 @@ async function bootstrap(){
|
|||
// because of the asynchronous file-loaders, wait until it has been executed
|
||||
await _httpErrorPages.express(_webapp, {
|
||||
lang: 'en_US',
|
||||
footer: 'Hello <strong>World</strong>'
|
||||
payload: {
|
||||
footer: 'Hello <strong>World</strong>',
|
||||
myvar: 'hello world'
|
||||
}
|
||||
});
|
||||
|
||||
// start service
|
||||
|
@ -174,10 +170,13 @@ bootstrap()
|
|||
|
||||
Syntax: `Promise _httpErrorPages.express(expressWebapp [, options:Object])`
|
||||
|
||||
* `template` - the path to a custom **EJS** template used to generate the pages. default [assets/template.ejs](assets/template.ejs)
|
||||
* `css` - the path to a precompiled **CSS** file injected into the page. default [assets/layout.css](assets/layout.css)
|
||||
* `footer` - optional page footer content (html allowed). default **null**
|
||||
* `lang` - language definition which should be used (available in the `i18n/` directory). default **en_US**
|
||||
* `template` (type:string) - the path to a custom **EJS** template used to generate the pages. default [assets/template.ejs](assets/template.ejs)
|
||||
* `css` (type:string) - the path to a precompiled **CSS** file injected into the page. default [assets/layout.css](assets/layout.css)
|
||||
* `lang` (type:string) - language definition which should be used (available in the `i18n/` directory). default **en_US**
|
||||
* `payload` (type:object) - additional variables available within the template
|
||||
* `payload.footer` (type:string) - optional page footer content (html allowed). default **null**
|
||||
* `filter` (type:function) - filter callback to manipulate the variables before populated within the template
|
||||
* `onError` (type:function) - simple debug handler to print errors to the console (not to be used in production!)
|
||||
|
||||
## koajs Integration ##
|
||||
|
||||
|
@ -191,7 +190,7 @@ yarn add http-error-pages
|
|||
|
||||
**Example**
|
||||
|
||||
A ready-to-use example can be found in [examples/koa.js](exmaples/koa.js).
|
||||
A ready-to-use example can be found in [examples/koa.js](examples/koa.js).
|
||||
Keep in mind that the following example has to be executed within an async context!
|
||||
|
||||
```js
|
||||
|
@ -203,7 +202,11 @@ const _httpErrorPages = require('http-error-pages');
|
|||
// because of the asynchronous file-loaders, wait until it has been executed - it returns an async handler
|
||||
_webapp.use(await _httpErrorPages.koa({
|
||||
lang: 'en_US',
|
||||
footer: 'Hello <strong>World</strong>'
|
||||
payload: {
|
||||
footer: 'Hello <strong>World</strong>',
|
||||
myvar: 'hello world'
|
||||
}
|
||||
|
||||
}));
|
||||
|
||||
// add other middleware handlers
|
||||
|
@ -224,10 +227,13 @@ _webapp.listen(8888);
|
|||
|
||||
Syntax: `Promise _httpErrorPages.koa([options:Object])`
|
||||
|
||||
* `template` - the path to a custom **EJS** template used to generate the pages. default [assets/template.ejs](assets/template.ejs)
|
||||
* `css` - the path to a precompiled **CSS** file injected into the page. default [assets/layout.css](assets/layout.css)
|
||||
* `footer` - optional page footer content (html allowed). default **null**
|
||||
* `lang` - language definition which should be used (available in the `i18n/` directory). default **en_US**
|
||||
* `template` (type:string) - the path to a custom **EJS** template used to generate the pages. default [assets/template.ejs](assets/template.ejs)
|
||||
* `css` (type:string) - the path to a precompiled **CSS** file injected into the page. default [assets/layout.css](assets/layout.css)
|
||||
* `lang` (type:string) - language definition which should be used (available in the `i18n/` directory). default **en_US**
|
||||
* `payload` (type:object) - additional variables available within the template
|
||||
* `payload.footer` (type:string) - optional page footer content (html allowed). default **null**
|
||||
* `filter` (type:function) - filter callback to manipulate the variables before populated within the template
|
||||
* `onError` (type:function) - simple debug handler to print errors to the console (not to be used in production!)
|
||||
|
||||
## Caddy Integration ##
|
||||
|
||||
|
@ -390,7 +396,7 @@ The footer message can easily be changed/removed by editing [config.json](config
|
|||
```js
|
||||
{
|
||||
// Output Filename Scheme - eg. HTTP500.html
|
||||
"scheme": "HTTP%d.html",
|
||||
"scheme": "HTTP%code%.html",
|
||||
|
||||
// Footer content (HTML Allowed)
|
||||
"footer": "Contact <a href=\"mailto:info@example.org\">info@example.org</a>"
|
||||
|
@ -402,23 +408,49 @@ The footer message can easily be changed/removed by editing [config.json](config
|
|||
```js
|
||||
{
|
||||
// Output Filename Scheme - eg. HTTP500.html
|
||||
"scheme": "HTTP%d.html"
|
||||
"scheme": "HTTP%code%.html"
|
||||
}
|
||||
```
|
||||
|
||||
### Placeholders/Variables ###
|
||||
|
||||
The following set of variables is exposed to the ejs template (404 page example):
|
||||
|
||||
```js
|
||||
{
|
||||
title: 'Resource not found',
|
||||
message: 'The requested resource could not be found but may be available again in the future.',
|
||||
code: '404',
|
||||
language: 'en',
|
||||
scheme: 'HTTP%code%.html',
|
||||
pagetitle: "We've got some trouble | %code% - %title%",
|
||||
footer: 'Tech Contact <a href="mailto:info@example.org">info@example.org</a>',
|
||||
myvar: 'Hello World'
|
||||
}
|
||||
```
|
||||
|
||||
To generate dynamic titles/content based on the current variable set, each variable is exposed as `placeholder` (surrounded by `%`).
|
||||
|
||||
You can also define custom variable within the page definitions, everything is merged togehter.
|
||||
|
||||
### Modify the HTML template ###
|
||||
|
||||
The HTML template is based on [ejs](https://github.com/mde/ejs) and located in [assets/template.ejs](assets/template.ejs) - you can apply any kind of changes.
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="<%= vars.language %>">
|
||||
<head>
|
||||
<title>HTTP<%= code %> - <%= title %></title>
|
||||
</head><body>
|
||||
<h2>Hello World</h2>
|
||||
<div class="cover"><h1><%= title %> <small>Error <%= code %></small></h1><p class="lead"><%= message %></p></div>
|
||||
</body></html>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title><%= vars.pagetitle %></title>
|
||||
<style type="text/css"><%- vars.inlinecss %></style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1><%= vars.title %> <small><%= vars.code %></small></h1><p class="lead"><%= vars.message %></p></div>
|
||||
<% if (vars.footer){ %><footer><p><%- vars.footer %></p></footer><% } %>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
|
||||
### Command line options ###
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<html lang="<%= vars.language %>">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | <%= code %> - <%= title %></title>
|
||||
<style type="text/css"><%- inlinecss %></style>
|
||||
<title><%= vars.pagetitle %></title>
|
||||
<style type="text/css"><%- vars.inlinecss %></style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1><%= title %> <small>Error <%= code %></small></h1><p class="lead"><%= message %></p></div>
|
||||
<% if (footer){ %><footer><p><%- footer %></p></footer><% } %>
|
||||
<div class="cover"><h1><%= vars.title %> <small><%= vars.code %></small></h1><p class="lead"><%= vars.message %></p></div>
|
||||
<% if (vars.footer){ %><footer><p><%- vars.footer %></p></footer><% } %>
|
||||
</body>
|
||||
</html>
|
||||
|
|
114
bin/generator.js
114
bin/generator.js
|
@ -2,53 +2,73 @@
|
|||
|
||||
const _fs = require('fs-magic');
|
||||
const _path = require('path');
|
||||
const _assetsPath = _path.join(__dirname, '../assets');
|
||||
const _langPath = _path.join(__dirname, '../i18n');
|
||||
const _cli = require('commander');
|
||||
const _pkg = require('../package.json');
|
||||
const _pageRenderer = require('../lib/page-renderer');
|
||||
const _render = require('../lib/page-renderer');
|
||||
const _jsonReader = require('../lib/json-reader');
|
||||
const _getResources = require('../lib/resources');
|
||||
|
||||
// global paths
|
||||
let templatePath = null;
|
||||
let cssPath = null;
|
||||
// paths
|
||||
const _assetsPath = _path.join(__dirname, '../assets');
|
||||
const _langPath = _path.join(__dirname, '../i18n');
|
||||
|
||||
async function generator(configFilename, pageDefinitionFile, distPath){
|
||||
// default files
|
||||
const _defaults = {
|
||||
distDir: _path.join(__dirname, '../dist'),
|
||||
configFile: _path.join(__dirname, '../config.json'),
|
||||
templateFile: _path.join(_assetsPath, 'template.ejs'),
|
||||
cssFile: _path.join(_assetsPath, 'layout.css')
|
||||
};
|
||||
|
||||
// generate static pages
|
||||
async function generator(configFilename, distPath, opt){
|
||||
// load config
|
||||
const config = await _jsonReader(configFilename);
|
||||
|
||||
// load page definitions
|
||||
const pages = await _jsonReader(pageDefinitionFile);
|
||||
const pageDefinitions = await _jsonReader(opt.pages);
|
||||
|
||||
// load template
|
||||
const tpl = await _fs.readFile(templatePath, 'utf8');
|
||||
|
||||
// load css
|
||||
const css = await _fs.readFile(cssPath, 'utf8');
|
||||
// load resources
|
||||
const resources = await _getResources({
|
||||
template: opt.template,
|
||||
stylesheet: opt.stylesheet,
|
||||
lang: null
|
||||
});
|
||||
|
||||
console.log('Generating static pages');
|
||||
|
||||
// for each errorcode generate custom page
|
||||
await Promise.all(Object.keys(pages).map(async function(p){
|
||||
// page config
|
||||
const pconf = pages[p];
|
||||
await Promise.all(Object.keys(pageDefinitions).map(async function(code){
|
||||
// get page config. title+message available
|
||||
const pageData = pageDefinitions[code];
|
||||
|
||||
// inject errorcode
|
||||
pconf.code = p;
|
||||
// merge variables for ejs template usage
|
||||
const templateVars = Object.assign({}, pageData, {
|
||||
code: code,
|
||||
language: opt.lang.substr(0, 2)
|
||||
}, config);
|
||||
|
||||
// inject foote
|
||||
pconf.footer = pconf.footer || config.footer;
|
||||
// apply filter for template variable usage within the config
|
||||
const varNames = Object.keys(templateVars);
|
||||
const placeholderData = Object.assign({}, templateVars);
|
||||
for (const key in templateVars){
|
||||
templateVars[key] = templateVars[key] && templateVars[key].replace(/%([\w]+)%/g, function(match, name){
|
||||
// name exists ?
|
||||
if (varNames.includes(name)){
|
||||
return placeholderData[name];
|
||||
}else{
|
||||
throw new Error(`unknown placeholder "${name}" used in template variable [${key}]`);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// render page
|
||||
const content = await _pageRenderer(tpl, css, pconf);
|
||||
|
||||
// generate filename
|
||||
const filename = 'HTTP' + p + '.html';
|
||||
const content = await _render(resources.template, resources.stylesheet, templateVars);
|
||||
|
||||
// write content to file
|
||||
await _fs.writeFile(_path.join(distPath, filename), content, 'utf8');
|
||||
await _fs.writeFile(_path.join(distPath, templateVars.scheme), content, 'utf8');
|
||||
|
||||
console.log(' |- Page <' + filename + '>');
|
||||
console.log(` |- Page <${templateVars.scheme}>`);
|
||||
}));
|
||||
}
|
||||
|
||||
|
@ -60,51 +80,41 @@ _cli
|
|||
// static error page generator
|
||||
.command('static [config]')
|
||||
.description('run http-error-pages generator')
|
||||
.option('-t, --template <path>', 'path to your custom EJS template file', null)
|
||||
.option('-s, --styles <path>', 'path to your custom stylesheet (precompiled as CSS!)', null)
|
||||
.option('-t, --template <path>', 'path to your custom EJS template file', _defaults.templateFile)
|
||||
.option('-s, --styles <path>', 'path to your custom stylesheet (precompiled as CSS!)', _defaults.cssFile)
|
||||
.option('-p, --pages <path>', 'path to your custom page definition', null)
|
||||
.option('-l, --lang <lang>', 'the language of the default page definition', null)
|
||||
.option('-o, --out <path>', 'output directory', null)
|
||||
.option('-l, --lang <lang>', 'the language of the default page definition', 'en_US')
|
||||
.option('-o, --out <path>', 'output directory', _defaults.distDir)
|
||||
|
||||
.action(function(configFilename, options){
|
||||
// config set ?
|
||||
const configPath = configFilename || _path.join(__dirname, '../config.json');
|
||||
|
||||
// template path set ?
|
||||
templatePath = options.template || _path.join(_assetsPath, 'template.ejs');
|
||||
|
||||
// style path set ?
|
||||
cssPath = options.styles || _path.join(_assetsPath, 'layout.css');
|
||||
|
||||
// output path set ?
|
||||
const distPath = options.out || _path.join(__dirname, '../dist');
|
||||
|
||||
// language set ? use en_US as default
|
||||
const lang = options.lang || 'en_US';
|
||||
const configPath = configFilename || _defaults.configFile;
|
||||
|
||||
// custom page definition available ?
|
||||
let pageDefinitionFile = options.pages || null;
|
||||
|
||||
// page definition not set ? use lang
|
||||
if (pageDefinitionFile === null){
|
||||
pageDefinitionFile = _path.join(_langPath, 'pages-'+ lang + '.json')
|
||||
}
|
||||
const pageDefinitionFile = options.pages || _path.join(_langPath, 'pages-'+ options.lang + '.json');
|
||||
|
||||
// show paths
|
||||
console.log('');
|
||||
console.log('Paths');
|
||||
console.log(' |- Config:', configPath);
|
||||
console.log(' |- Template:', templatePath);
|
||||
console.log(' |- Styles:', cssPath);
|
||||
console.log(' |- Template:', options.template);
|
||||
console.log(' |- Styles:', options.styles);
|
||||
console.log(' |- Pages:', pageDefinitionFile);
|
||||
console.log('');
|
||||
|
||||
// run async generator
|
||||
generator(configPath, pageDefinitionFile, distPath)
|
||||
generator(configPath, options.out, {
|
||||
template: options.template,
|
||||
stylesheet: options.styles,
|
||||
lang: options.lang,
|
||||
pages: pageDefinitionFile
|
||||
})
|
||||
.then(function(){
|
||||
console.log('Static files generated\n');
|
||||
})
|
||||
.catch(function(e){
|
||||
console.error(e);
|
||||
console.log('\nStatic files not generated\n');
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
// Output Filename Scheme - eg. HTTP500.html
|
||||
"scheme": "HTTP%d.html",
|
||||
// Output Filename Scheme - eg. HTTP500.html
|
||||
"scheme": "HTTP%code%.html",
|
||||
|
||||
// Page title (HTML not allowed)
|
||||
"pagetitle": "We've got some trouble | %code% - %title%",
|
||||
|
||||
// Footer content (HTML Allowed)
|
||||
"footer": null
|
||||
|
|
12
config.json
12
config.json
|
@ -1,7 +1,13 @@
|
|||
{
|
||||
// Output Filename Scheme - eg. HTTP500.html
|
||||
"scheme": "HTTP%d.html",
|
||||
// Output Filename Scheme - eg. HTTP500.html
|
||||
"scheme": "HTTP%code%.html",
|
||||
|
||||
// Page title (HTML not allowed)
|
||||
"pagetitle": "We've got some trouble | %code% - %title%",
|
||||
|
||||
// Footer content (HTML Allowed)
|
||||
"footer": "Tech Contact <a href=\"mailto:info@example.org\">info@example.org</a>"
|
||||
"footer": "Tech Contact <a href=\"mailto:info@example.org\">info@example.org</a>",
|
||||
|
||||
// additional vars
|
||||
"myvar" : "Hello World"
|
||||
}
|
4
dist/HTTP400.html
vendored
4
dist/HTTP400.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 400 - Bad Request</title>
|
||||
<title>We've got some trouble | 400 - Bad Request</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Bad Request <small>Error 400</small></h1><p class="lead">The server cannot process the request due to something that is perceived to be a client error.</p></div>
|
||||
<div class="cover"><h1>Bad Request <small>400</small></h1><p class="lead">The server cannot process the request due to something that is perceived to be a client error.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
dist/HTTP401.html
vendored
4
dist/HTTP401.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 401 - Unauthorized</title>
|
||||
<title>We've got some trouble | 401 - Unauthorized</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Unauthorized <small>Error 401</small></h1><p class="lead">The requested resource requires an authentication.</p></div>
|
||||
<div class="cover"><h1>Unauthorized <small>401</small></h1><p class="lead">The requested resource requires an authentication.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
dist/HTTP403.html
vendored
4
dist/HTTP403.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 403 - Access Denied</title>
|
||||
<title>We've got some trouble | 403 - Access Denied</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Access Denied <small>Error 403</small></h1><p class="lead">The requested resource requires an authentication.</p></div>
|
||||
<div class="cover"><h1>Access Denied <small>403</small></h1><p class="lead">The requested resource requires an authentication.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
dist/HTTP404.html
vendored
4
dist/HTTP404.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 404 - Resource not found</title>
|
||||
<title>We've got some trouble | 404 - Resource not found</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Resource not found <small>Error 404</small></h1><p class="lead">The requested resource could not be found but may be available again in the future.</p></div>
|
||||
<div class="cover"><h1>Resource not found <small>404</small></h1><p class="lead">The requested resource could not be found but may be available again in the future.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
dist/HTTP500.html
vendored
4
dist/HTTP500.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 500 - Webservice currently unavailable</title>
|
||||
<title>We've got some trouble | 500 - Webservice currently unavailable</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>Error 500</small></h1><p class="lead">An unexpected condition was encountered.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>500</small></h1><p class="lead">An unexpected condition was encountered.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
dist/HTTP501.html
vendored
4
dist/HTTP501.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 501 - Not Implemented</title>
|
||||
<title>We've got some trouble | 501 - Not Implemented</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Not Implemented <small>Error 501</small></h1><p class="lead">The Webserver cannot recognize the request method.</p></div>
|
||||
<div class="cover"><h1>Not Implemented <small>501</small></h1><p class="lead">The Webserver cannot recognize the request method.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
dist/HTTP502.html
vendored
4
dist/HTTP502.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 502 - Webservice currently unavailable</title>
|
||||
<title>We've got some trouble | 502 - Webservice currently unavailable</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>Error 502</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>502</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
dist/HTTP503.html
vendored
4
dist/HTTP503.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 503 - Webservice currently unavailable</title>
|
||||
<title>We've got some trouble | 503 - Webservice currently unavailable</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>Error 503</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>503</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
dist/HTTP520.html
vendored
4
dist/HTTP520.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 520 - Origin Error - Unknown Host</title>
|
||||
<title>We've got some trouble | 520 - Origin Error - Unknown Host</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Origin Error - Unknown Host <small>Error 520</small></h1><p class="lead">The requested hostname is not routed. Use only hostnames to access resources.</p></div>
|
||||
<div class="cover"><h1>Origin Error - Unknown Host <small>520</small></h1><p class="lead">The requested hostname is not routed. Use only hostnames to access resources.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
dist/HTTP521.html
vendored
4
dist/HTTP521.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 521 - Webservice currently unavailable</title>
|
||||
<title>We've got some trouble | 521 - Webservice currently unavailable</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>Error 521</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>521</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
4
dist/HTTP533.html
vendored
4
dist/HTTP533.html
vendored
|
@ -3,11 +3,11 @@
|
|||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 533 - Scheduled Maintenance</title>
|
||||
<title>We've got some trouble | 533 - Scheduled Maintenance</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Scheduled Maintenance <small>Error 533</small></h1><p class="lead">This site is currently down for maintenance.<br />Our service team is working hard to bring it back online soon.</p></div>
|
||||
<div class="cover"><h1>Scheduled Maintenance <small>533</small></h1><p class="lead">This site is currently down for maintenance.<br />Our service team is working hard to bring it back online soon.</p></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 400 - Bad Request</title>
|
||||
<title>We've got some trouble | 400 - Bad Request</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Bad Request <small>Error 400</small></h1><p class="lead">The server cannot process the request due to something that is perceived to be a client error.</p></div>
|
||||
<div class="cover"><h1>Bad Request <small>400</small></h1><p class="lead">The server cannot process the request due to something that is perceived to be a client error.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 401 - Unauthorized</title>
|
||||
<title>We've got some trouble | 401 - Unauthorized</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Unauthorized <small>Error 401</small></h1><p class="lead">The requested resource requires an authentication.</p></div>
|
||||
<div class="cover"><h1>Unauthorized <small>401</small></h1><p class="lead">The requested resource requires an authentication.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 403 - Access Denied</title>
|
||||
<title>We've got some trouble | 403 - Access Denied</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Access Denied <small>Error 403</small></h1><p class="lead">The requested resource requires an authentication.</p></div>
|
||||
<div class="cover"><h1>Access Denied <small>403</small></h1><p class="lead">The requested resource requires an authentication.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 404 - Resource not found</title>
|
||||
<title>We've got some trouble | 404 - Resource not found</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Resource not found <small>Error 404</small></h1><p class="lead">The requested resource could not be found but may be available again in the future.</p></div>
|
||||
<div class="cover"><h1>Resource not found <small>404</small></h1><p class="lead">The requested resource could not be found but may be available again in the future.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 500 - Webservice currently unavailable</title>
|
||||
<title>We've got some trouble | 500 - Webservice currently unavailable</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>Error 500</small></h1><p class="lead">An unexpected condition was encountered.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>500</small></h1><p class="lead">An unexpected condition was encountered.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 501 - Not Implemented</title>
|
||||
<title>We've got some trouble | 501 - Not Implemented</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Not Implemented <small>Error 501</small></h1><p class="lead">The Webserver cannot recognize the request method.</p></div>
|
||||
<div class="cover"><h1>Not Implemented <small>501</small></h1><p class="lead">The Webserver cannot recognize the request method.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 502 - Webservice currently unavailable</title>
|
||||
<title>We've got some trouble | 502 - Webservice currently unavailable</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>Error 502</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>502</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 503 - Webservice currently unavailable</title>
|
||||
<title>We've got some trouble | 503 - Webservice currently unavailable</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>Error 503</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>503</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
13
docs/HTTP504.html
Normal file
13
docs/HTTP504.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 504 - Webservice currently unavailable</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>502</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 520 - Origin Error - Unknown Host</title>
|
||||
<title>We've got some trouble | 520 - Origin Error - Unknown Host</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Origin Error - Unknown Host <small>Error 520</small></h1><p class="lead">The requested hostname is not routed. Use only hostnames to access resources.</p></div>
|
||||
<div class="cover"><h1>Origin Error - Unknown Host <small>520</small></h1><p class="lead">The requested hostname is not routed. Use only hostnames to access resources.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 521 - Webservice currently unavailable</title>
|
||||
<title>We've got some trouble | 521 - Webservice currently unavailable</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>Error 521</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<div class="cover"><h1>Webservice currently unavailable <small>521</small></h1><p class="lead">We've got some trouble with our backend upstream cluster.<br />Our service team has been dispatched to bring it back online.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/AndiDittrich/HttpErrorPages -->
|
||||
<!-- Simple HttpErrorPages | MIT License | https://github.com/HttpErrorPages -->
|
||||
<meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>We've got some trouble | 533 - Scheduled Maintenance</title>
|
||||
<title>We've got some trouble | 533 - Scheduled Maintenance</title>
|
||||
<style type="text/css">/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}/*! Simple HttpErrorPages | MIT X11 License | https://github.com/AndiDittrich/HttpErrorPages */body,html{width:100%;height:100%;background-color:#21232a}body{color:#fff;text-align:center;text-shadow:0 2px 4px rgba(0,0,0,.5);padding:0;min-height:100%;-webkit-box-shadow:inset 0 0 100px rgba(0,0,0,.8);box-shadow:inset 0 0 100px rgba(0,0,0,.8);display:table;font-family:"Open Sans",Arial,sans-serif}h1{font-family:inherit;font-weight:500;line-height:1.1;color:inherit;font-size:36px}h1 small{font-size:68%;font-weight:400;line-height:1;color:#777}a{text-decoration:none;color:#fff;font-size:inherit;border-bottom:dotted 1px #707070}.lead{color:silver;font-size:21px;line-height:1.4}.cover{display:table-cell;vertical-align:middle;padding:0 20px}footer{position:fixed;width:100%;height:40px;left:0;bottom:0;color:#a0a0a0;font-size:14px}</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="cover"><h1>Scheduled Maintenance <small>Error 533</small></h1><p class="lead">This site is currently down for maintenance.<br />Our service team is working hard to bring it back online soon.</p></div>
|
||||
<div class="cover"><h1>Scheduled Maintenance <small>533</small></h1><p class="lead">This site is currently down for maintenance.<br />Our service team is working hard to bring it back online soon.</p></div>
|
||||
<footer><p>Technical Contact: <a href="mailto:x@example.com">x@example.com</a></p></footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
"scheme": "HTTP%d.html",
|
||||
"scheme": "HTTP%code%.html",
|
||||
"footer": "Technical Contact: <a href=\"mailto:x@example.com\">x@example.com</a>"
|
||||
}
|
|
@ -17,16 +17,44 @@ async function bootstrap(){
|
|||
next(myError);
|
||||
});
|
||||
|
||||
// throw an unknown error
|
||||
_webapp.get('/unknown', function(req, res, next){
|
||||
const myError = new Error();
|
||||
myError.status = 523;
|
||||
next(myError);
|
||||
});
|
||||
|
||||
// throw an internal error
|
||||
_webapp.get('/500', function(req, res){
|
||||
throw new Error('Server Error');
|
||||
});
|
||||
|
||||
// custom errorhandling middleware
|
||||
// use this pattern in production to log errors!
|
||||
_webapp.use(function(err, req, res, next){
|
||||
console.log(`[custom logging middleware] ${err.message}`);
|
||||
// forward error
|
||||
next(err);
|
||||
});
|
||||
|
||||
// use http error pages handler (final statement!)
|
||||
// because of the asynchronous file-loaders, wait until it has been executed
|
||||
await _httpErrorPages.express(_webapp, {
|
||||
lang: 'en_US',
|
||||
footer: 'Hello <strong>World</strong>'
|
||||
payload: {
|
||||
footer: 'Hello <strong>World</strong>',
|
||||
pagetitle: 'we are sorry - an internal error encountered',
|
||||
},
|
||||
filter: function(data, req, res){
|
||||
// remove footer
|
||||
//data.footer = null;
|
||||
return data;
|
||||
},
|
||||
onError: function(data){
|
||||
// for debugging purpose only!!
|
||||
// use custom middleware for errorlogging!!
|
||||
console.log(`[expressjs] ERROR: ${data.title}\n${data.error.stack}`)
|
||||
}
|
||||
});
|
||||
|
||||
// start service
|
||||
|
|
|
@ -10,7 +10,20 @@ async function bootstrap(){
|
|||
// because of the asynchronous file-loaders, wait until it has been executed - it returns an async handler
|
||||
_webapp.use(await _httpErrorPages.koa({
|
||||
lang: 'en_US',
|
||||
footer: 'Hello <strong>World</strong>'
|
||||
payload: {
|
||||
footer: 'Hello <strong>World</strong>',
|
||||
pagetitle: 'we are sorry - an internal error encountered',
|
||||
},
|
||||
filter: function(data, ctx){
|
||||
// remove footer
|
||||
//data.footer = null;
|
||||
return data;
|
||||
},
|
||||
onError: function(data){
|
||||
// for debugging purpose only!!
|
||||
// use custom middleware for errorlogging!!
|
||||
console.log(`[koa] ERROR: ${data.title}\n${data.error.stack}`)
|
||||
}
|
||||
}));
|
||||
|
||||
// demo handler
|
||||
|
|
11
gulpfile.js
11
gulpfile.js
|
@ -1,8 +1,8 @@
|
|||
const _gulp = require('gulp');
|
||||
const _sass = require('gulp-sass');
|
||||
const _sass = require('gulp-sass')(require('sass'));
|
||||
const _prettyError = require('gulp-prettyerror');
|
||||
const _cleanCSS = require('gulp-clean-css');
|
||||
const _concat = require('gulp-concat-util');
|
||||
const _concat = require('gulp-concat');
|
||||
|
||||
_gulp.task('sass', function (){
|
||||
return _gulp.src('./assets/layout.scss')
|
||||
|
@ -13,6 +13,7 @@ _gulp.task('sass', function (){
|
|||
.pipe(_concat('layout.css'))
|
||||
|
||||
.pipe(_gulp.dest('./assets'));
|
||||
});
|
||||
|
||||
_gulp.task('default', _gulp.series('sass'));
|
||||
});
|
||||
|
||||
_gulp.task('default', _gulp.series(['sass']));
|
||||
|
|
@ -45,6 +45,12 @@
|
|||
"title": "Webservice currently unavailable",
|
||||
"message": "We've got some trouble with our backend upstream cluster.\nOur service team has been dispatched to bring it back online."
|
||||
},
|
||||
|
||||
// http proxy time out error
|
||||
"504": {
|
||||
"title": "Webservice currently unavailable",
|
||||
"message": "We've got some trouble with our backend upstream cluster.\nOur service team has been dispatched to bring it back online."
|
||||
},
|
||||
|
||||
// CUSTOM ERROR CODES
|
||||
// =======================================================
|
||||
|
|
|
@ -51,6 +51,12 @@
|
|||
"message": "Se encontró una condición inesperada. Nuestro equipo de servicio está abocado para colocarlo nuevamente en servicio."
|
||||
},
|
||||
|
||||
// http 504 Gateway Timeout
|
||||
"504": {
|
||||
"title": "Servicio web proxy actualmente no disponible",
|
||||
"message": "Tenemos algunos problemas con nuestro racimo. Nuestro equipo de servicio fue enviado para restablecerlo nuevamente en línea."
|
||||
},
|
||||
|
||||
//https://tools.ietf.org/html/rfc6585#section-6
|
||||
// http 511 Network Authentication Required (offer a URL for login)
|
||||
|
||||
|
|
|
@ -45,6 +45,12 @@
|
|||
"title": "Service Web actuellement indisponible",
|
||||
"message": "Nous avons quelques problèmes avec notre cluster en amont. Notre équipe de service a été dépêchée pour le remettre en ligne."
|
||||
},
|
||||
|
||||
// http proxy timeout error
|
||||
"504": {
|
||||
"title": "Service Web actuellement indisponible",
|
||||
"message": "Nous avons quelques problèmes avec notre cluster en amont. Notre équipe de service a été dépêchée pour le remettre en ligne."
|
||||
},
|
||||
|
||||
// CUSTOM ERROR CODES
|
||||
// =======================================================
|
||||
|
|
79
i18n/pages-it_IT.json
Normal file
79
i18n/pages-it_IT.json
Normal file
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
// STANDARD ERROR CODES
|
||||
// =======================================================
|
||||
|
||||
//http 400 bad request
|
||||
"400": {
|
||||
"title": "Richiesta non valida",
|
||||
"message": "Il server non può elaborare la richiesta a causa di qualcosa che è percepito come un errore del client."
|
||||
},
|
||||
|
||||
//http 401 unauthorized
|
||||
"401": {
|
||||
"title": "Accesso negato",
|
||||
"message": "La risorsa richiesta richiede un'autenticazione."
|
||||
},
|
||||
|
||||
// http 403 access denied
|
||||
"403": {
|
||||
"title": "Operazione non consentita",
|
||||
"message": "La risorsa richiesta richiede un'autenticazione."
|
||||
},
|
||||
|
||||
// http 404 not found
|
||||
"404": {
|
||||
"title": "Risorsa non trovata",
|
||||
"message": "La risorsa richiesta non è stata trovata ma potrebbe essere nuovamente disponibile in futuro."
|
||||
},
|
||||
|
||||
// internal server error
|
||||
"500": {
|
||||
"title": "Web Server attualmente non disponibile",
|
||||
"message": "Si è verificata una condizione imprevista.\nIl nostro team di assistenza è stato inviato per riportarlo online."
|
||||
},
|
||||
|
||||
// unknown http method
|
||||
"501": {
|
||||
"title": "Non implementato",
|
||||
"message": "Il server Web non è in grado di riconoscere il metodo della richiesta."
|
||||
},
|
||||
|
||||
// webserver - bad gateway
|
||||
"502": {
|
||||
"title": "Web Server attualmente non disponibile - Gateway non valido",
|
||||
"message": "Abbiamo qualche problema con il nostro cluster back-end.\nIl nostro team di assistenza è stato inviato per riportarlo online."
|
||||
},
|
||||
|
||||
// webserver - service unavailable
|
||||
"503": {
|
||||
"title": "Web Server attualmente non disponibile",
|
||||
"message": "Abbiamo qualche problema con il nostro cluster back-end.\nIl nostro team di assistenza è stato inviato per riportarlo online."
|
||||
},
|
||||
|
||||
// webserver - gateway timeout
|
||||
"504": {
|
||||
"title": "Web Server attualmente non disponibile - Timeout del gateway",
|
||||
"message": "Abbiamo qualche problema con il nostro cluster back-end.\nIl nostro team di assistenza è stato inviato per riportarlo online."
|
||||
},
|
||||
|
||||
// CUSTOM ERROR CODES
|
||||
// =======================================================
|
||||
|
||||
// webserver origin error
|
||||
"520": {
|
||||
"title": "Errore di origine - Host sconosciuto",
|
||||
"message": "Il nome host richiesto non viene instradato. Utilizzare solo nomi host per accedere alle risorse."
|
||||
},
|
||||
|
||||
// webserver down error
|
||||
"521": {
|
||||
"title": "Web Server attualmente non disponibile",
|
||||
"message": "Abbiamo qualche problema con il nostro cluster back-end.\nIl nostro team di assistenza è stato inviato per riportarlo online."
|
||||
},
|
||||
|
||||
// maintenance
|
||||
"533": {
|
||||
"title": "Manutenzione programmata",
|
||||
"message": "Questo sito è attualmente fuori servizio per manutenzione.\nIl nostro team di assistenza sta lavorando sodo per riportarlo presto online."
|
||||
}
|
||||
}
|
86
i18n/pages-pl-PL.json
Normal file
86
i18n/pages-pl-PL.json
Normal file
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
|
||||
"400": {
|
||||
"title": "Błędne zapytanie",
|
||||
"message": "Serwer nie mógł przetworzyć żądania."
|
||||
},
|
||||
"401": {
|
||||
"title": "Brak uwierzytelnienia",
|
||||
"message": "Żądany zasób wymaga uwierzytelnienia."
|
||||
},
|
||||
|
||||
"403": {
|
||||
"title": "Brak dostępu",
|
||||
"message": "Żądany zasób wymaga uwierzytelnienia."
|
||||
},
|
||||
|
||||
"404": {
|
||||
"title": "Nie znaleziono",
|
||||
"message": "Nie można znaleźć żądanego zasobu, ale może on być ponownie dostępny w przyszłości."
|
||||
},
|
||||
|
||||
"405": {
|
||||
"title": "Nie dozwolona metoda",
|
||||
"message": "Witryna nie bługuje wybranej metody."
|
||||
},
|
||||
|
||||
"408": {
|
||||
"title": "Upłynął limit czasu żadania",
|
||||
"message": "Witryna przekroczyła limit czasu oczekiwania na żądanie przeglądarki."
|
||||
},
|
||||
|
||||
"410": {
|
||||
"title": "Nie znaleziono",
|
||||
"message": "Nie można znaleźć żądanego zasobu, ale był on kiedyś dostępny."
|
||||
},
|
||||
|
||||
"429": {
|
||||
"title": "Za dużo zapytań",
|
||||
"message": "Wysłano zbyt wiele zapytań w zbyt krótkim czasie."
|
||||
},
|
||||
|
||||
"499": {
|
||||
"title": "Żądanie zamknięcia",
|
||||
"message": "Przeglądarka wsyłała żądanie przerwania"
|
||||
},
|
||||
|
||||
"500": {
|
||||
"title": "Witryna jest aktualnie niedostępna",
|
||||
"message": "Wystąpił nieoczekiwany błąd.\nJuż pracujemy nad przywróceniem witryny."
|
||||
},
|
||||
|
||||
"501": {
|
||||
"title": "Brak obsługi",
|
||||
"message": "Witryna nie jest w stanie obsłużyć takiego zapytania."
|
||||
},
|
||||
|
||||
"502": {
|
||||
"title": "Witryna jest aktualnie niedostępna",
|
||||
"message": "Wystąpił nieoczekiwany błąd.\nJuż pracujemy nad przywróceniem witryny."
|
||||
},
|
||||
|
||||
"503": {
|
||||
"title": "Witryna jest aktualnie niedostępna",
|
||||
"message": "Wystąpił nieoczekiwany błąd.\nJuż pracujemy nad przywróceniem witryny."
|
||||
},
|
||||
|
||||
"504": {
|
||||
"title": "Witryna jest aktualnie niedostępna",
|
||||
"message": "Wystąpił nieoczekiwany błąd.\nJuż pracujemy nad przywróceniem witryny."
|
||||
},
|
||||
|
||||
"520": {
|
||||
"title": "Błąd — nieznany host",
|
||||
"message": "Żądana nazwa hosta nie jest routowana. Używaj tylko nazw hostów, aby uzyskać dostęp do zasobów."
|
||||
},
|
||||
|
||||
"521": {
|
||||
"title": "Witryna jest aktualnie niedostępna",
|
||||
"message": "Wystąpił nieoczekiwany błąd.\nJuż pracujemy nad przywróceniem witryny."
|
||||
},
|
||||
|
||||
"533": {
|
||||
"title": "Zaplanowana konserwacja",
|
||||
"message": "Witryna jest obecnie niedostępna z powodu konserwacji.\nPracujemy na tym, aby wkrótce przywrócić ją do trybu online."
|
||||
}
|
||||
}
|
|
@ -44,6 +44,12 @@
|
|||
"message": "Nós tivemos alguns problema com o nosso backend. Nosso time de serviços está trabalhando para deixar isso online novamente."
|
||||
},
|
||||
|
||||
// http proxy timeout error
|
||||
"504": {
|
||||
"title": "Webservice atualmente indisponível",
|
||||
"message": "Nós tivemos alguns problema com o nosso backend. Nosso time de serviços está trabalhando para deixar isso online novamente."
|
||||
},
|
||||
|
||||
// CUSTOM ERROR CODES
|
||||
// =======================================================
|
||||
// webserver origin error
|
||||
|
|
|
@ -45,6 +45,12 @@
|
|||
"title": "Webservice目前不可用",
|
||||
"message": "我们的后端上游服务器出现了问题。\n技术支持团队正在努力修复中。"
|
||||
},
|
||||
|
||||
// http proxy timeout error
|
||||
"504": {
|
||||
"title": "Webservice目前不可用",
|
||||
"message": "我们的后端上游服务器出现了问题。\n技术支持团队正在努力修复中。"
|
||||
},
|
||||
|
||||
// CUSTOM ERROR CODES
|
||||
// =======================================================
|
||||
|
|
36
lib/dispatcher.js
Normal file
36
lib/dispatcher.js
Normal file
|
@ -0,0 +1,36 @@
|
|||
|
||||
// generic error dispatching
|
||||
module.exports = function dispatch(opt, resources, page, httpStatusCode, err){
|
||||
// page available ?
|
||||
if (!resources.pages[page]){
|
||||
// use "internal server error" as default
|
||||
page = '500';
|
||||
httpStatusCode = null;
|
||||
}
|
||||
|
||||
// extract page date
|
||||
// page found ? fallback in case http500 template not exists
|
||||
const pageData = resources.pages[page] || {
|
||||
title: 'Internal Server Error',
|
||||
message: 'Additionally, FileNotFound was encountered while trying to use an ErrorDocument to handle the request'
|
||||
};
|
||||
|
||||
// create template variables
|
||||
const templateVars = Object.assign({}, {
|
||||
title: pageData.title,
|
||||
message: pageData.message,
|
||||
code: httpStatusCode || 500,
|
||||
language: opt.lang.substr(0, 2),
|
||||
error: err
|
||||
}, opt.payload);
|
||||
|
||||
// debug error handler set ?
|
||||
if (opt.onError){
|
||||
opt.onError(templateVars);
|
||||
}
|
||||
|
||||
return {
|
||||
pageData: pageData,
|
||||
templateVars: templateVars
|
||||
};
|
||||
}
|
|
@ -1,68 +1,46 @@
|
|||
const _render = require('./page-renderer');
|
||||
const _path = require('path');
|
||||
const _fs = require('fs-magic');
|
||||
const _jsonReader = require('./json-reader');
|
||||
const _parseOptions = require('./options');
|
||||
const _getResources = require('./resources');
|
||||
const _dispatch = require('./dispatcher');
|
||||
|
||||
// wrapper to add custom options
|
||||
async function createDispatcher(options={}){
|
||||
|
||||
// merge options
|
||||
const opt = {
|
||||
template: options.template || _path.join(__dirname, '../assets/template.ejs'),
|
||||
css: options.css || _path.join(__dirname, '../assets/layout.css'),
|
||||
lang: options.lang || 'en_US',
|
||||
footer: options.footer || null
|
||||
};
|
||||
const opt = _parseOptions(options);
|
||||
|
||||
// load page template
|
||||
const tpl = await _fs.readFile(opt.template, 'utf8');
|
||||
|
||||
// load styles
|
||||
const css = await _fs.readFile(opt.css, 'utf8');
|
||||
|
||||
// load page definitions
|
||||
const pages = await _jsonReader(_path.join(__dirname, '../i18n/pages-' + opt.lang + '.json'));
|
||||
// load resources
|
||||
const resources = await _getResources(opt);
|
||||
|
||||
// multi-type support
|
||||
// @see https://github.com/expressjs/express/blob/master/examples/error-pages/index.js
|
||||
return function dispatchRequest(page, httpStatusCode, req, res){
|
||||
// page available ?
|
||||
if (!pages[page]){
|
||||
// use "internal server error" as default
|
||||
page = '500';
|
||||
httpStatusCode = null;
|
||||
}
|
||||
return function dispatchRequest(page, httpStatusCode, req, res, err){
|
||||
|
||||
// run generic dispatcher
|
||||
const {pageData, templateVars} = _dispatch(opt, resources, page, httpStatusCode, err);
|
||||
|
||||
// set http status code
|
||||
res.status(httpStatusCode || 500);
|
||||
|
||||
// extract page date
|
||||
const pageData = pages[page];
|
||||
|
||||
// multiple response formats
|
||||
res.format({
|
||||
// standard http-error-pages
|
||||
html: function(){
|
||||
res.type('.html');
|
||||
res.send(_render(tpl, css, {
|
||||
code: httpStatusCode,
|
||||
title: pageData.title,
|
||||
message: pageData.message,
|
||||
footer: opt.footer
|
||||
}))
|
||||
res.send(_render(resources.template, resources.stylesheet, opt.filter(templateVars, req, res)))
|
||||
},
|
||||
|
||||
// json
|
||||
json: function(){
|
||||
res.json({
|
||||
error: pageData.title + ' - ' + pageData.message
|
||||
error: `${pageData.title} - ${pageData.message}`
|
||||
})
|
||||
},
|
||||
|
||||
// text response
|
||||
default: function(){
|
||||
// plain text
|
||||
res.type('.txt').send(pageData.title + ' - ' + pageData.message);
|
||||
res.type('.txt').send(`${pageData.title} - ${pageData.message}`);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -75,19 +53,20 @@ module.exports = async function httpErrorPages(router, options={}){
|
|||
|
||||
// default 404 error - no route matches
|
||||
router.all('*', function(req, res){
|
||||
dispatch('404', 404, req, res);
|
||||
dispatch('404', 404, req, res, new Error('file not found'));
|
||||
});
|
||||
|
||||
// internal errors (all)
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
router.use(function(err, req, res, next){
|
||||
// status code given ?
|
||||
if (err.status){
|
||||
// custom errorpage set ?
|
||||
dispatch(err.errorpage || err.status, err.status, req, res);
|
||||
dispatch(err.errorpage || err.status, err.status, req, res, err);
|
||||
|
||||
// use default http500 page
|
||||
}else{
|
||||
dispatch('500', 500, req, res);
|
||||
dispatch('500', 500, req, res, err);
|
||||
}
|
||||
});
|
||||
};
|
|
@ -1,15 +1,18 @@
|
|||
const _fs = require('fs-magic');
|
||||
|
||||
// parse json file and allow single line comments
|
||||
async function readJSONFile(filename){
|
||||
module.exports = async function readJSONFile(filename){
|
||||
// load file
|
||||
let raw = await _fs.readFile(filename, 'utf8');
|
||||
|
||||
// strip single line js comments
|
||||
raw = raw.replace(/^\s*\/\/.*$/gm, '');
|
||||
|
||||
// parse text
|
||||
return JSON.parse(raw);
|
||||
}
|
||||
|
||||
module.exports = readJSONFile;
|
||||
// try to parse json
|
||||
try{
|
||||
return JSON.parse(raw);
|
||||
}catch(e){
|
||||
console.log(`Error parsing JSON file: [${filename}]`);
|
||||
throw e;
|
||||
}
|
||||
}
|
54
lib/koa.js
54
lib/koa.js
|
@ -1,44 +1,27 @@
|
|||
const _render = require('./page-renderer');
|
||||
const _path = require('path');
|
||||
const _fs = require('fs-magic');
|
||||
const _jsonReader = require('./json-reader');
|
||||
const _parseOptions = require('./options');
|
||||
const _getResources = require('./resources');
|
||||
const _dispatch = require('./dispatcher');
|
||||
|
||||
// wrapper to add custom options
|
||||
async function createDispatcher(options={}){
|
||||
|
||||
// merge options
|
||||
const opt = {
|
||||
template: options.template || _path.join(__dirname, '../assets/template.ejs'),
|
||||
css: options.css || _path.join(__dirname, '../assets/layout.css'),
|
||||
lang: options.lang || 'en_US',
|
||||
footer: options.footer || null
|
||||
};
|
||||
const opt = _parseOptions(options);
|
||||
|
||||
// load page template
|
||||
const tpl = await _fs.readFile(opt.template, 'utf8');
|
||||
|
||||
// load styles
|
||||
const css = await _fs.readFile(opt.css, 'utf8');
|
||||
|
||||
// load page definitions
|
||||
const pages = await _jsonReader(_path.join(__dirname, '../i18n/pages-' + opt.lang + '.json'));
|
||||
// load resources
|
||||
const resources = await _getResources(opt);
|
||||
|
||||
// multi-type support
|
||||
// @see https://github.com/koajs/koa/blob/master/docs/api/response.md#responseistypes
|
||||
return function dispatchRequest(page, httpStatusCode, ctx){
|
||||
// page available ?
|
||||
if (!pages[page]){
|
||||
// use "internal server error" as default
|
||||
page = '500';
|
||||
httpStatusCode = null;
|
||||
}
|
||||
return function dispatchRequest(page, httpStatusCode, ctx, err){
|
||||
|
||||
// run generic dispatcher
|
||||
const {pageData, templateVars} = _dispatch(opt, resources, page, httpStatusCode, err);
|
||||
|
||||
// set http status code
|
||||
ctx.status = httpStatusCode || 500;
|
||||
|
||||
// extract page date
|
||||
const pageData = pages[page];
|
||||
|
||||
// multiple response formats
|
||||
switch (ctx.accepts('json', 'html', 'text')){
|
||||
|
||||
|
@ -46,25 +29,20 @@ async function createDispatcher(options={}){
|
|||
case 'json':
|
||||
ctx.type = 'json';
|
||||
ctx.body = {
|
||||
error: pageData.title + ' - ' + pageData.message
|
||||
error: `${pageData.title} - ${pageData.message}`
|
||||
}
|
||||
break;
|
||||
|
||||
// html response
|
||||
case 'html':
|
||||
ctx.type = 'html';
|
||||
ctx.body = _render(tpl, css, {
|
||||
code: httpStatusCode,
|
||||
title: pageData.title,
|
||||
message: pageData.message,
|
||||
footer: opt.footer
|
||||
});
|
||||
ctx.body = _render(resources.template, resources.stylesheet, opt.filter(templateVars, ctx));
|
||||
break;
|
||||
|
||||
// default: text response
|
||||
default:
|
||||
ctx.type = 'text/plain';
|
||||
ctx.body = pageData.title + ' - ' + pageData.message;
|
||||
ctx.body = `${pageData.title} - ${pageData.message}`;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -83,17 +61,17 @@ module.exports = async function httpErrorPages(options={}){
|
|||
|
||||
// route not found ?
|
||||
if (ctx.status === 404) {
|
||||
dispatch('404', 404, ctx);
|
||||
dispatch('404', 404, ctx, new Error('file not found'));
|
||||
}
|
||||
}catch(err){
|
||||
// status code given ?
|
||||
if (err.status){
|
||||
// custom errorpage set ?
|
||||
dispatch(err.errorpage || err.status, err.status, ctx);
|
||||
dispatch(err.errorpage || err.status, err.status, ctx, err);
|
||||
|
||||
// use default http500 page
|
||||
}else{
|
||||
dispatch('500', 500, ctx);
|
||||
dispatch('500', 500, ctx, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
17
lib/options.js
Normal file
17
lib/options.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
const _path = require('path');
|
||||
|
||||
// wrapper to add custom options
|
||||
module.exports = function getOptions(opt){
|
||||
|
||||
// merge options
|
||||
const options = {
|
||||
template: opt.template || _path.join(__dirname, '../assets/template.ejs'),
|
||||
stylesheet: opt.css || _path.join(__dirname, '../assets/layout.css'),
|
||||
lang: opt.lang || 'en_US',
|
||||
payload: opt.payload || {},
|
||||
filter: opt.filter || function(d){return d},
|
||||
onError: opt.onError || null
|
||||
};
|
||||
|
||||
return options;
|
||||
}
|
|
@ -1,13 +1,25 @@
|
|||
const _ejs = require('ejs');
|
||||
|
||||
// render template using given data
|
||||
function renderTemplate(template, css, data={}){
|
||||
|
||||
module.exports = function renderTemplate(template, css, data={}){
|
||||
|
||||
// pagetitle set ?
|
||||
if (!data.pagetitle){
|
||||
// use default title
|
||||
data.pagetitle = `We've got some trouble | ${data.code} - ${data.title}`;
|
||||
}
|
||||
|
||||
// assign css
|
||||
data.inlinecss = css;
|
||||
|
||||
// render template - use custom escape function to handle linebreaks!
|
||||
// render template
|
||||
return _ejs.render(template, data, {
|
||||
// wrap all variables into "vars" object
|
||||
strict: true,
|
||||
_with: false,
|
||||
localsName: 'vars',
|
||||
|
||||
// use custom escape function to handle linebreaks!
|
||||
escape: function(text){
|
||||
if (!text){
|
||||
return '';
|
||||
|
@ -22,6 +34,4 @@ function renderTemplate(template, css, data={}){
|
|||
return text;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = renderTemplate;
|
||||
}
|
22
lib/resources.js
Normal file
22
lib/resources.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
const _path = require('path');
|
||||
const _fs = require('fs-magic');
|
||||
const _jsonReader = require('./json-reader');
|
||||
|
||||
// wrapper to add custom options
|
||||
module.exports = async function loadResources(opt){
|
||||
|
||||
// load page template
|
||||
const template = opt.template && await _fs.readFile(opt.template, 'utf8');
|
||||
|
||||
// load styles
|
||||
const stylesheet = opt.stylesheet && await _fs.readFile(opt.stylesheet, 'utf8');
|
||||
|
||||
// load page definitions
|
||||
const pages = opt.lang && await _jsonReader(_path.join(__dirname, '../i18n/pages-' + opt.lang + '.json'));
|
||||
|
||||
return {
|
||||
template: template,
|
||||
stylesheet: stylesheet,
|
||||
pages: pages
|
||||
};
|
||||
}
|
19
package.json
19
package.json
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "http-error-pages",
|
||||
"version": "2.0.1",
|
||||
"version": "3.1.0",
|
||||
"description": "Simple HTTP Error Pages. standalone + static + koa + express",
|
||||
"engines": {
|
||||
"node": ">=7.6"
|
||||
|
@ -36,23 +36,24 @@
|
|||
"http-error-pages": "./bin/generator.js"
|
||||
},
|
||||
"main": "./lib/main.js",
|
||||
"author": "Andi Dittrich (https://andidittrich.de)",
|
||||
"homepage": "https://github.com/AndiDittrich/HttpErrorPages",
|
||||
"bugs": "https://github.com/AndiDittrich/HttpErrorPages/issues",
|
||||
"repository": "AndiDittrich/HttpErrorPages",
|
||||
"author": "Andi Dittrich (https://andidittrich.com)",
|
||||
"homepage": "https://github.com/HttpErrorPages/HttpErrorPages",
|
||||
"bugs": "https://github.com/HttpErrorPages/HttpErrorPages/issues",
|
||||
"repository": "HttpErrorPages/HttpErrorPages",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"commander": "^5.1.0",
|
||||
"commander": "^6.2.0",
|
||||
"eslint": "^7.4.0",
|
||||
"eslint-config-aenondynamics": "^0.2.0",
|
||||
"express": "^4.17.1",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-clean-css": "^4.3.0",
|
||||
"gulp-concat-util": "^0.5.5",
|
||||
"gulp-concat": "^2.6.1",
|
||||
"gulp-prettyerror": "^2.0.0",
|
||||
"gulp-sass": "^4.1.0",
|
||||
"gulp-sass": "^5.1.0",
|
||||
"koa": "^2.13.0",
|
||||
"less": "^3.11.3"
|
||||
"less": "^3.11.3",
|
||||
"sass": "^1.60.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"ejs": "^3.1.3",
|
||||
|
|
Loading…
Add table
Reference in a new issue