abrown0926 / Santagram-Project2

0 stars 0 forks source link

Setting HTTP status codes #16

Open abrown0926 opened 2 years ago

abrown0926 commented 2 years ago

200 - ok 201 - created 202 - accepted 204 - no content 301 - moved permanently 303 - see other 307 - temporary redirect 401/403 - unauthorized and forbidden errors 404 - not found 500 - internal server error

gjdiaz commented 2 years ago

homeRoutes has the following status codes set up: 500 for get homepage failure

wishlistRoutes has the following status codes set up: 400 for update failures 500 for request by wishlist id failures *need 200 for successful wishlist creation and update

userRoutes has the following status codes set up: 409 for failure to register based on username/email already in use 200 for successful registration 400 for incorrect login information 200 for successful login 204 for displaying no content after logging off 404 for logout *not sure if this is necessary