---
title: "Discussion on \"Create a Basic Framework with Express (Part 1.1)\" | Hashnode"
description: "Discussion on \"Create a Basic Framework with Express (Part 1.1)\". In Part 1, error handling was created. Let's make it easier to throw errors.\nInstead of\nlet error = new Error('This is a major issue!!')\nerror.statusCode = 500\nthrow error\n\nWe will make it something like this\nthrow new ServerError({ message: 'This is..."
url: "https://hashnode.com/posts/create-a-basic-framework-with-express-part-1-1/6429cd99a42e70448a2f8c02"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Create a Basic Framework with Express (Part 1.1)](https://devlogbook.com/create-a-basic-framework-with-express-part-1-1?utm_source=hashnode&utm_medium=feed)

In Part 1, error handling was created. Let's make it easier to throw errors. Instead of let error = new Error('This is a major issue!!') error.statusCode = 500 throw error We will make it something like this throw new ServerError({ message: 'This is...

Apr 2, 2023 · 1 min read · devlogbook.com  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#express](https://hashnode.com/tag/express)
-   [#error-handling](https://hashnode.com/tag/error-handling)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Bryan](https://hashnode.com/@bryanyeh)

@bryanyeh · United States

  
[View profile](https://hashnode.com/@bryanyeh)

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
