Skip to content

Commit b5a1cd6

Browse files
committed
review
1 parent 72b8701 commit b5a1cd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codersdk/workspacesdk/dialer.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ var permanentErrorStatuses = []int{
2424
http.StatusBadRequest, // returned if API mismatch
2525
http.StatusNotFound, // returned if user doesn't have permission or agent doesn't exist
2626
http.StatusInternalServerError, // returned if database is not reachable,
27-
http.StatusUnauthorized, // returned if user is not authenticated
2827
http.StatusForbidden, // returned if user is not authorized
28+
// StatusUnauthorized is only a permanent error if the error is not due to
29+
// an invalid resume token. See `checkResumeTokenFailure`.
30+
http.StatusUnauthorized,
2931
}
3032

3133
type WebsocketDialer struct {

0 commit comments

Comments
 (0)