Waziup / Socialbackend

1 stars 3 forks source link

check Error codes #7

Open cdupont opened 6 years ago

cdupont commented 6 years ago

Errors should be reported to the user. Here is a tentative list:

GET /SocialBackend/socials 200 - found 404 - not found

POST /SocialBackend/socials 201 - created 400 - Bad Request (if the body is not well formed) 404 - not found otherwise, you should return the error code from Facebook, twitter...

GET /SocialBackend/socials/XXX 200 - found 404 - not found

DELETE /SocialBackend/socials/XXX 200 - deleted 404 - not found

pandaconstantin commented 6 years ago

Do not understand well this problem