Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling server errors #42

Open
ameentalahmeh opened this issue Jul 11, 2019 · 1 comment
Open

Handling server errors #42

ameentalahmeh opened this issue Jul 11, 2019 · 1 comment

Comments

@ameentalahmeh
Copy link

ameentalahmeh commented Jul 11, 2019

You have nice work and idea, Y3tekm Al3afia. But you should in the router handle the server errors as explained in this week workshops.

Complete your if statements with below code or similar:
else { response.writeHead(404, { "Content-Type": "text/html" }); response.end("<h1>404 dosen't found</h1>"); }

@YousefQawasmeh
Copy link
Collaborator

we are forget this , thank you to remember us
and we will copy it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants