Browse code

builder-next: use constants for http status codes

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2019/10/14 00:26:23
Showing 1 changed files
... ...
@@ -57,7 +57,7 @@ func (h *reqBodyHandler) RoundTrip(req *http.Request) (*http.Response, error) {
57 57
 
58 58
 		resp := &http.Response{
59 59
 			Status:        "200 OK",
60
-			StatusCode:    200,
60
+			StatusCode:    http.StatusOK,
61 61
 			Body:          rc,
62 62
 			ContentLength: -1,
63 63
 		}