prepareSuccessResponse prepares a success response in the appropriate format. The action handler
should return an ActionResponse response when the action is successful. If useBody is true, the
response will be returned as an object with the HTTP response code and the ActionResponse in the
body field. If useBody is false, the ActionResponse will be returned directly.
prepareSuccessResponse prepares a success response in the appropriate format. The action handler should return an ActionResponse response when the action is successful. If useBody is true, the response will be returned as an object with the HTTP response code and the ActionResponse in the body field. If useBody is false, the ActionResponse will be returned directly.