Skip to content

Commit 1f3c5ad

Browse files
committed
📳 api/ssm: return 201 Created on user creation
The spec says 201, not 200.
1 parent bee543d commit 1f3c5ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/ssm/ssm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func handleAddUser(w http.ResponseWriter, r *http.Request, ms Server) (int, erro
122122
return restapi.EncodeResponse(w, http.StatusBadRequest, StandardError{Message: err.Error()})
123123
}
124124

125-
return restapi.EncodeResponse(w, http.StatusOK, &uc)
125+
return restapi.EncodeResponse(w, http.StatusCreated, &uc)
126126
}
127127

128128
func handleGetUser(w http.ResponseWriter, r *http.Request, ms Server) (int, error) {

0 commit comments

Comments
 (0)