'Endpoint not found']); } } else { http_response_code(400); echo json_encode(['message' => 'Invalid request']); }