Complete the code to return a 207 status code for partial success.
response.status_code = [1]The HTTP status code 207 indicates a multi-status response, often used for partial success.
Complete the code to include a list of failed items in the JSON response.
response.json = {"failed_items": [1]The failed items should be a list of strings representing which items failed.
Fix the error in the code to properly handle partial success response.
if failed_items: return [1](json={"failed": failed_items}, status=207) else: return success_response()
make_response allows setting both JSON content and status code together.
Fill both blanks to create a partial success response with a message and failed items list.
response = [1]({"message": "Partial success", "failed": [2], status=207)
make_response creates the response with status code; the failed list shows which files failed.
Fill all three blanks to build a detailed partial success response with status, message, and failed items count.
response = [1]({"status": [2], "message": "Partial success", "failed_count": [3], status=207)
make_response creates the response; status is 207; failed_count is the length of failed items list.