Skip to content

Commit 907bc1e

Browse files
Philip Reichenbergerpaperspace-philip
authored andcommitted
use http status codes
1 parent 05fb952 commit 907bc1e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

api_backend.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ import (
1515
)
1616

1717
var DefaultBaseURL = "https://api.paperspace.io"
18-
var SuccessStatusCodes = []int{200, 201, 202, 203, 204}
18+
var SuccessStatusCodes = []int{
19+
http.StatusOK,
20+
http.StatusCreated,
21+
http.StatusAccepted,
22+
http.StatusNonAuthoritativeInfo,
23+
http.StatusNoContent,
24+
}
1925

2026
type APIBackend struct {
2127
BaseURL string

0 commit comments

Comments
 (0)