3 ms·
When you receive an HTTP response, it can contain a status value outside the valid range as well. So you have to handle those one way or the other. Regarding t
by layer8 2y ago
When you receive an HTTP response, it can contain a status value outside the valid range as well. So you have to handle those one way or the other.
Regarding the int type, a better solution would be to provide the ability to define a restricted integer type, so that the compiler can help.
- dagmx 2y agoOkay? So you cast it to the enum and instantly know it’s not a case you support. It’s built in validation.