Change return type for handle_patch_request