Skip to content

Latest commit

 

History

History

nodejs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Express

  • Express is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.

Microservices vs Monolith

How can API's be secure

CORS

Middlewares

Request Controller & how

Decouple Architecture

Interface & class

get vs post

put vs patch

Status codes

  • 400 Bad Request – This means that client-side input fails validation.
  • 401 Unauthorized – This means the user isn’t not authorized to access a resource. It usually returns when the user isn’t authenticated.
  • 403 Forbidden – This means the user is authenticated, but it’s not allowed to access a resource.
  • 404 Not Found – This indicates that a resource is not found.
  • 500 Internal server error – This is a generic server error. It probably shouldn’t be thrown explicitly.
  • 502 Bad Gateway – This indicates an invalid response from an upstream server.
  • 503 Service Unavailable – This indicates that something unexpected happened on server side (It can be anything like server overload, some parts of the system failed, etc.).

Security:

Always use SSL/TLS to encrypt the communication with your API. No exceptions. Period.