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
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