idansharon5 / to-do

0 stars 0 forks source link

Export Status Codes to Object #5

Open YotamZiv298 opened 1 year ago

YotamZiv298 commented 1 year ago

Export the status codes from this file: src/server/controllers/taskController.ts

To an enum, like this:

enum HttpStatusCodes {
  Ok = 200,
  Created = 201,
  NotFound = 404,
}
YotamZiv298 commented 1 year ago

You can also do it for the recurring messages like "Task not found" etc...