▲ | lelanthran 2 days ago | ||||||||||||||||||||||
> I don't follow. What's the boundary between transport layer and application layer in a Go web app? Just because it's the same app preparing both the transport and the application, you think that it's the same layer of comms? > Are you saying a "not found" at the application layer should return HTTP 200 and the client has to check the HTTP body for the real error code? The "not found" is not an application level error, even if, in your backend, you mixed them all up into the same function. | |||||||||||||||||||||||
▲ | mtlynch 2 days ago | parent [-] | ||||||||||||||||||||||
>Just because it's the same app preparing both the transport and the application, you think that it's the same layer of comms? Yes, that's what I think. I don't see any other way of dividing it, which is why I asked what you think the boundary is otherwise. Again: Can you explain what you think the boundary is between the application layer and transport layer in a Go web app? >The "not found" is not an application level error, even if, in your backend, you mixed them all up into the same function. If the request is something like /user/detail/12345 and user 12345 doesn't exist, what should the response be? | |||||||||||||||||||||||
|