Comments (3)
this project is only test in koa@1 now. :(
from kick-off-koa.
@dead-horse Thanks for your reply. I've created a pull request which modifies the README to figure out that.
from kick-off-koa.
Two things of note, possibly spoilers (click to expand)
About the solution criteria
It seems a passing solution only needs a matching response body, not the response status.
I guess the author intended a response 200 with different message bodies,
while some readers (including myself) think the status code has to match the route.
(So that /500
returns HTTP 500
etc.)
About setting the response body with HTTP status >= 500
As per the http-errors docs,
it seems one needs to set err.expose = true
in order to set a custom response body.
That certainly doesn't seem like the author's intention, but is one way to solve the problem.
To summarize I think elaborating the solution criteria might be a good idea.
from kick-off-koa.
Related Issues (20)
- Error: connect ECONNREFUSED HOT 2
- discussion: background information HOT 3
- error message about promise && connection HOT 2
- content headers remark HOT 1
- routing exercise question HOT 1
- run exercise error HOT 3
- what does these two wavy lines means in cookies chapter? HOT 1
- i18n-cn
- Navigating to `Choose Language` and then choosing an exercise crashes HOT 3
- cookies exercise hint/apis list improvements
- Whtat's the problem with my environment?
- Can't verify first exercise HOT 2
- error occurs when selecting `CHOOSE LANGUAGE` again. HOT 1
- readme typo HOT 1
- Feature request: Windows installer for kick-off-koa HOT 1
- not correct verify
- Error connecting to submission server, lesson 2 routing. HOT 2
- background isn't cleared?
- Update to support Koa 3 version HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kick-off-koa.