Skip to content

Commit b0cdcab

Browse files
authored
Treat errors as 404 to make it easier for the UI to display an error
1 parent da896c4 commit b0cdcab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func NewMux(backend WebBackend) *http.ServeMux {
9999

100100
instance, err := backend.GetWorkflowInstance(r.Context(), instanceID)
101101
if err != nil {
102-
w.WriteHeader(http.StatusInternalServerError)
102+
w.WriteHeader(http.StatusNotFound)
103103
return
104104
}
105105

0 commit comments

Comments
 (0)