• Express.js: Writing middleware

    How to write Express.js middleware First, let's understand what an Express middleware is. An Express middleware is a function which is allowed to be a part of Express's request-response cycle. This f...

  • Express.js: Custom 404 and 500 error pages

    How to create custom Express.js error pages Express does a good job of handling 404 and 500 errors by default. However, many a times, the error is page is now what we would like it to look like. Is t...