Numeric HTTP status codes vs http.Status* constants

We have agreed after discussion to prefer using directly numeric values (20x, 40x, 50x etc) in snapd code, instead of using the http.Status* constants, because the numeric values are quite more well-know anyway.


I’d appreciate a comment close to the less known ones, though.

I’ll make a PR in the next days, and we can discuss there whether some places warrant that already.

1 Like

here it is:

this is merged now, and there’s also a run-check --static check to make sure this style is kept going forward