We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72b8701 commit b5a1cd6Copy full SHA for b5a1cd6
codersdk/workspacesdk/dialer.go
@@ -24,8 +24,10 @@ var permanentErrorStatuses = []int{
24
http.StatusBadRequest, // returned if API mismatch
25
http.StatusNotFound, // returned if user doesn't have permission or agent doesn't exist
26
http.StatusInternalServerError, // returned if database is not reachable,
27
- http.StatusUnauthorized, // returned if user is not authenticated
28
http.StatusForbidden, // returned if user is not authorized
+ // StatusUnauthorized is only a permanent error if the error is not due to
29
+ // an invalid resume token. See `checkResumeTokenFailure`.
30
+ http.StatusUnauthorized,
31
}
32
33
type WebsocketDialer struct {
0 commit comments