Marcin Wolnik

Results 12 comments of Marcin Wolnik

Glad you like it David. Sorry for late reply but recently I was not that active on my OSS projects but this will improve in 2018 :) Good input and...

Originally I wanted to change the response from the Controller but looks like asking first was a good idea :)

> If not `500 Internal Server Error`, then which HTTP status code would you suggest instead? 200 OK, server correctly processed the request but the reservation cannot be made and...

Maybe it's just me but I would understood 500 more like "restaurant is on fire" if I wouldn't read the response I could even just log an error and try...

I would have agree if the _unexpected_ wasn't there, which for me is an essence :) But let's proceed. What if there was a _real_ exception during request execution. What...

> A `200 OK` response would indicate success, i.e. that the reservation was accepted, even if it wasn't. If a client developer isn't explicitly aware that the client software must...

> Why not? Firstly, they're expected upfront. Secondly, just because they might be _negative_ in some context (reservation, loan) doesn't make them erroneous. So to answer your previous question -...

> If that precludes a outcome from being an error, what _would_ constitute an error according to your heuristics? Actually, you're right. This is not a domain error. Error would...

We did a full circle probably :) When sending a request there's no such thing as a single desired outcome. I'm asking for a table if available. No one has...

Added some examples before, but the principle is pretty standard, I could quote the RFC: - infrastructure errors/exceptions - `5xx` - client errors - `4xx` In my opinion, the case...