Rework code_to_str() to return status name (like "NoData") instead of freeform text (like "no data").
I think returning text will introduce unnecessary difficulties when debugging because you'll have to remember mapping of that text to statuses, but what you actually need to know is always status code itself.
303
Rework code_to_str() to return status name (like "NoData") instead of freeform text (like "no data").
I think returning text will introduce unnecessary difficulties when debugging because you'll have to remember mapping of that text to statuses, but what you actually need to know is always status code itself.