]> Cypherpunks repositories - gostls13.git/commit
net/http,doc: use HTTP status code constants where applicable
authorunknown <geon0250@gmail.com>
Mon, 26 Feb 2018 04:41:20 +0000 (04:41 +0000)
committerAndrew Bonventre <andybons@golang.org>
Mon, 26 Feb 2018 05:04:31 +0000 (05:04 +0000)
commite9c57bea11c75810225ee1abf24a0daeed2bfb64
tree5f9d43a2631e5fd3d058881f295430bed9b00643
parent39852bf4cce6927e01d0136c7843f65a801738cb
net/http,doc: use HTTP status code constants where applicable

There are a few places where the integer value is used.
Use the equivalent constants to aid with readability.

Change-Id: I023b1dbe605340544c056d0e0d9d6d5a7d7d0edc
GitHub-Last-Rev: c1c90bcd251901f9f2a305ce5ddd0d85009a3d49
GitHub-Pull-Request: golang/go#24123
Reviewed-on: https://go-review.googlesource.com/96984
Reviewed-by: Andrew Bonventre <andybons@golang.org>
doc/progs/error2.go
doc/progs/error3.go
src/net/http/triv.go