Skip to content

Commit

Permalink
clean up commit
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey-wu committed Sep 28, 2024
1 parent 640176f commit 10c8f34
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
Empty file removed NewFile
Empty file.
23 changes: 16 additions & 7 deletions client/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<title>QB Reader</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Search through the database that powers QB Reader.">
<meta name="description" content="QB Reader - Page not found.">

<link href="/apple-touch-icon.png" rel="apple-touch-icon">
<link href="/apple-touch-icon-precomposed.png" rel="apple-touch-icon-precomposed">
Expand Down Expand Up @@ -65,12 +65,21 @@
</nav>

<div class="container mt-3">
<h1>Page Not Found</h1>
<br/>
<p><b>Rarely-used examples of these objects are named "Early Hints", "Variant Also Negotiates" and "Non-Authoritative Information". A 2016 proposal by Tim Bray to create a new one of these objects ends with the acknowledgement, "Thanks also to Ray Bradbury". That proposed object is named "Unavailable For Legal Reasons". An unofficial one of these objects used by Twitter's API is named for a quote from Demolition Man, "Enhance your calm". A Google easter egg produces one of these objects with the note, "The requested entity body is short and stout", in reference to a joke </b>(*) "Coffee Pot Control Protocol" that introduced one of these things called "I'm a teapot". The 300 series of these things indicate a redirection, while the 200 series indicates success. For 10 points, identify these three-digit identifiers that include "502 Bad Gateway" and "404 Not Found".</p>
<hr/>
<p><b>ANSWER: <u>HTTP status</u> codes</b> [accept <b><u>HTTP error codes</u></b>; accept <b><u>HTTP codes</u></b>; prompt on "<u>HTTP responses</u>" with "what part of the response?"; prompt on "<u>status</u> codes" or "<u>error</u> codes" with "under what protocol?"; anti-prompt on specific codes like "404 Not Found" with "can you be less specific?"]</p>
<h1>Page Not Found</h1>
<br />
<p><b>Rarely-used examples of these objects are named "Early Hints", "Variant Also Negotiates" and "Non-Authoritative
Information". A 2016 proposal by Tim Bray to create a new one of these objects ends with the acknowledgement, "Thanks
also to Ray Bradbury". That proposed object is named "Unavailable For Legal Reasons". An unofficial one of these
objects used by Twitter's API is named for a quote from Demolition Man, "Enhance your calm". A Google easter egg
produces one of these objects with the note, "The requested entity body is short and stout", in reference to a joke
</b>(*) "Coffee Pot Control Protocol" that introduced one of these things called "I'm a teapot". The 300 series of these
things indicate a redirection, while the 200 series indicates success. For 10 points, identify these three-digit
identifiers that include "502 Bad Gateway" and "404 Not Found".</p>
<hr />
<p><b>ANSWER: <u>HTTP status</u> codes</b> [accept <b><u>HTTP error codes</u></b>; accept <b><u>HTTP codes</u></b>; prompt on
"<u>HTTP responses</u>" with "what part of the response?"; prompt on "<u>status</u> codes" or "<u>error</u> codes" with
"under what protocol?"; anti-prompt on specific codes like "404 Not Found" with "can you be less specific?"]</p>
</div>
</body>

</html>
</html>
5 changes: 1 addition & 4 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ import userRouter from './user.js';
import webhookRouter from './api/webhook.js';

import express, { Router } from 'express';
import { fileURLToPath } from 'url';
import path from 'path';

const router = Router();
const __dirname = path.dirname(fileURLToPath(import.meta.url));

router.get('/*.scss', (req, res) => {
res.sendFile(req.url, { root: './scss' });
Expand Down Expand Up @@ -44,7 +41,7 @@ router.use(express.static('node_modules'));
* 404 Error handler
*/
router.use((_req, res) => {
res.status(404).sendFile(path.join(__dirname, '../client', '404.html'));
res.sendFile('404.html', { root: './client' });
});

export default router;

0 comments on commit 10c8f34

Please sign in to comment.