• 0 Posts
  • 10 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.








  • There are places where this is just not possible. I live in very hot climate and people would be dying all the time due to heat exhaustion and dehydration if this was the case. I don’t necessarily disagree with you, but you can’t simply say, fuck cars. It doesn’t work this way everywhere. I would say that public transportation needs to be greatly improved upon and invested in though.

    I’ve lived in places where I don’t need a car and it’s great and shitty. I’ve lived in places where you do need a car and it’s great and shitty. I’ve lived in places that have great transportation and it’s hot, but again, it’s great and shitty. There are trade-offs with whatever you go with. I do agree that we should focus more on better zoning and better public transportation.