• 0 Posts
  • 5 Comments
Joined 1 year ago
cake
Cake day: August 3rd, 2023

help-circle
  • The status code that gets returned should be the status code of the messenger and not the data. If you want to add a status code about the data, then please do.

    If something can return null and empty and it’s valid, that is not a 404. That is a 200.

    As far as a 403, the messenger is telling you that you shall not pass. There is no data. 403 is appropriate here. The return response can be anything since 403 is pretty self explanatory, but I would probably return json to be consistent. I would also use the field message. Something like the first one for this use case only.

    In other cases where i do get data, I would use data, message, status (optional). But status in the json response would be status about the message.


  • This has less to do with Elon and more to do with twitter itself. Why were other platforms created in the first place like Lemmy? Could it be to decentralize these platforms so that no one entity can control them, including the government? This whole shit show with Brazil shows us exactly why these platforms should exist. The oppression of the people need to stop.

    Instead of complaining about others and offering no contributions to this platform, I’d love to hear your take on this and start an open discussion. It seems like you have something on your mind, so why not speak it?